]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: TSC reset compensation
authorZachary Amsden <zamsden@redhat.com>
Fri, 20 Aug 2010 08:07:20 +0000 (22:07 -1000)
committerAvi Kivity <avi@redhat.com>
Sun, 24 Oct 2010 08:51:22 +0000 (10:51 +0200)
commit11139d7c8ba14b4f9391bedffcf2b1603be66f2b
tree22b605d3984c20456cfdc7c4fe22883450da2141
parentd480e511de1bf6573d109d49fdc09acb1e96f7ce
KVM: x86: TSC reset compensation

Attempt to synchronize TSCs which are reset to the same value.  In the
case of a reliable hardware TSC, we can just re-use the same offset, but
on non-reliable hardware, we can get closer by adjusting the offset to
match the elapsed time.

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