KVM: x86: disable master clock if TSC is reset during suspend
authorMarcelo Tosatti <mtosatti@redhat.com>
Wed, 14 May 2014 15:43:24 +0000 (12:43 -0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 14 May 2014 15:59:21 +0000 (17:59 +0200)
commit16a9602158861687c78b6de6dc6a79e6e8a9136f
treeaa613146dd2e9432189fe6d39debf4747a5db40e
parent5367742ad5321dd38058420adb4750ed9c7ead1e
KVM: x86: disable master clock if TSC is reset during suspend

Updating system_time from the kernel clock once master clock
has been enabled can result in time backwards event, in case
kernel clock frequency is lower than TSC frequency.

Disable master clock in case it is necessary to update it
from the resume path.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c