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)
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

Simple merge