From e1845bbe732b5ad5755f0f3a93fb6ea85919e8a2 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Sat, 24 May 2008 09:27:03 +0100 Subject: hvm: Build guest timers on monotonic system time. Move hvm platform timers from underlying physical CPU TSC to Xen system time and ensure domain-wide monotonicity. TSC on many systems may skew between processors leading to 'time going backwards' messages from some guests. Signed-off-by: Dan Magenheimer Signed-off-by: Keir Fraser --- xen/include/asm-x86/hvm/vcpu.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'xen/include/asm-x86/hvm/vcpu.h') diff --git a/xen/include/asm-x86/hvm/vcpu.h b/xen/include/asm-x86/hvm/vcpu.h index fc43d5d20d..6eb9d67b73 100644 --- a/xen/include/asm-x86/hvm/vcpu.h +++ b/xen/include/asm-x86/hvm/vcpu.h @@ -68,6 +68,9 @@ struct hvm_vcpu { struct mtrr_state mtrr; u64 pat_cr; + /* In mode delay_for_missed_ticks, VCPUs have differing guest times. */ + int64_t stime_offset; + /* Which cache mode is this VCPU in (CR0:CD/NW)? */ u8 cache_mode; -- cgit v1.2.3