aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/kvm_host.h
diff options
context:
space:
mode:
authorZachary Amsden <zamsden@redhat.com>2010-08-20 04:07:20 -0400
committerAvi Kivity <avi@redhat.com>2010-10-24 04:51:22 -0400
commitf38e098ff3a315bb74abbb4a35cba11bbea8e2fa (patch)
tree22b605d3984c20456cfdc7c4fe22883450da2141 /arch/x86/include/asm/kvm_host.h
parent99e3e30aee1a326a98bf3a5f47b8622219c685f3 (diff)
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>
Diffstat (limited to 'arch/x86/include/asm/kvm_host.h')
-rw-r--r--arch/x86/include/asm/kvm_host.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h
index a215153f1ff..57b4394491e 100644
--- a/arch/x86/include/asm/kvm_host.h
+++ b/arch/x86/include/asm/kvm_host.h
@@ -396,6 +396,9 @@ struct kvm_arch {
396 unsigned long irq_sources_bitmap; 396 unsigned long irq_sources_bitmap;
397 s64 kvmclock_offset; 397 s64 kvmclock_offset;
398 spinlock_t tsc_write_lock; 398 spinlock_t tsc_write_lock;
399 u64 last_tsc_nsec;
400 u64 last_tsc_offset;
401 u64 last_tsc_write;
399 402
400 struct kvm_xen_hvm_config xen_hvm_config; 403 struct kvm_xen_hvm_config xen_hvm_config;
401 404