diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c index 590d1d2d620b412891064e71ab07ab1d7ae508e0..8277f32017ad5b3fcab6ba1c2241454fa639bb4f 100644 --- a/arch/x86/kvm/svm.c +++ b/arch/x86/kvm/svm.c @@ -2923,9 +2923,7 @@ static int svm_get_msr(struct kvm_vcpu *vcpu, unsigned ecx, u64 *data) switch (ecx) { case MSR_IA32_TSC: { - struct vmcb *vmcb = get_host_vmcb(svm); - - *data = vmcb->control.tsc_offset + + *data = svm->vmcb->control.tsc_offset + svm_scale_tsc(vcpu, native_read_tsc()); break;