]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfe9bd1185e63582668cbfefce0d6a7c84739f3f6
tree82c133ffb2c8877f675af519a2ffd4c55820c7e9
parenta963d5322bc6db6b185ba96cdddb7eb3d3303cc9
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