KVM: Track TSC synchronization in generations
authorZachary Amsden <zamsden@gmail.com>
Fri, 3 Feb 2012 17:43:57 +0000 (15:43 -0200)
committerAvi Kivity <avi@redhat.com>
Thu, 8 Mar 2012 12:10:09 +0000 (14:10 +0200)
commite26101b116a6235bcd80b3a4c38c9fe91286cd79
tree82c133ffb2c8877f675af519a2ffd4c55820c7e9
parent0dd6a6edb0124e6c71931ff575b18e15ed6e8603
KVM: Track TSC synchronization in generations

This allows us to track the original nanosecond and counter values
at each phase of TSC writing by the guest.  This gets us perfect
offset matching for stable TSC systems, and perfect software
computed TSC matching for machines with unstable TSC.

Signed-off-by: Zachary Amsden <zamsden@gmail.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/x86.c