KVM: nSVM: clean up tsc_offset update
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 18 May 2020 15:07:08 +0000 (11:07 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 1 Jun 2020 08:25:59 +0000 (04:25 -0400)
commit18fc6c55d1f449ff57778a4003c838a79d62b5a8
tree14b7c539fad91fa9e35095ce8ef8b21dedaa049f
parent69cb877487de3662e08081cf036f8fe0e4a3b806
KVM: nSVM: clean up tsc_offset update

Use l1_tsc_offset to compute svm->vcpu.arch.tsc_offset and
svm->vmcb->control.tsc_offset, instead of relying on hsave.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/nested.c