|
@@ -466,7 +466,7 @@ static u32 msrs_to_save[] = {
|
|
|
#ifdef CONFIG_X86_64
|
|
|
MSR_CSTAR, MSR_KERNEL_GS_BASE, MSR_SYSCALL_MASK, MSR_LSTAR,
|
|
|
#endif
|
|
|
- MSR_IA32_TIME_STAMP_COUNTER, MSR_KVM_SYSTEM_TIME, MSR_KVM_WALL_CLOCK,
|
|
|
+ MSR_IA32_TSC, MSR_KVM_SYSTEM_TIME, MSR_KVM_WALL_CLOCK,
|
|
|
MSR_IA32_PERF_STATUS, MSR_IA32_CR_PAT, MSR_VM_HSAVE_PA
|
|
|
};
|
|
|
|
|
@@ -644,8 +644,7 @@ static void kvm_write_guest_time(struct kvm_vcpu *v)
|
|
|
|
|
|
/* Keep irq disabled to prevent changes to the clock */
|
|
|
local_irq_save(flags);
|
|
|
- kvm_get_msr(v, MSR_IA32_TIME_STAMP_COUNTER,
|
|
|
- &vcpu->hv_clock.tsc_timestamp);
|
|
|
+ kvm_get_msr(v, MSR_IA32_TSC, &vcpu->hv_clock.tsc_timestamp);
|
|
|
ktime_get_ts(&ts);
|
|
|
local_irq_restore(flags);
|
|
|
|