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)
commitf38e098ff3a315bb74abbb4a35cba11bbea8e2fa
tree22b605d3984c20456cfdc7c4fe22883450da2141
parent99e3e30aee1a326a98bf3a5f47b8622219c685f3
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