diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/kvm/svm.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c index 590d1d2d620b..8277f32017ad 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) | |||
2923 | 2923 | ||
2924 | switch (ecx) { | 2924 | switch (ecx) { |
2925 | case MSR_IA32_TSC: { | 2925 | case MSR_IA32_TSC: { |
2926 | struct vmcb *vmcb = get_host_vmcb(svm); | 2926 | *data = svm->vmcb->control.tsc_offset + |
2927 | |||
2928 | *data = vmcb->control.tsc_offset + | ||
2929 | svm_scale_tsc(vcpu, native_read_tsc()); | 2927 | svm_scale_tsc(vcpu, native_read_tsc()); |
2930 | 2928 | ||
2931 | break; | 2929 | break; |