aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/asm-x86/hvm/vcpu.h
diff options
context:
space:
mode:
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2006-05-25 16:00:36 +0100
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2006-05-25 16:00:36 +0100
commit86d5da49a6f762ef38c8e746fe5db7fade959e37 (patch)
tree0b2104acb4eba11168fac95931b5cd18bfc372d1 /xen/include/asm-x86/hvm/vcpu.h
parente4813816b2633ae4ec58f1e23b6f675ac009d5dc (diff)
downloadxen-86d5da49a6f762ef38c8e746fe5db7fade959e37.tar.gz
xen-86d5da49a6f762ef38c8e746fe5db7fade959e37.tar.bz2
xen-86d5da49a6f762ef38c8e746fe5db7fade959e37.zip
[HVM] Support multiple HVM time device models coming soon.
1: Adopt an abstract layer for periodic time on top of different HV time device models like PIT, RTC and ACPI time. 2: Extract VMM knowledge from PIT DM code and keep close with qemu for easy maintain in future. 3: Use guest time (TSC) to drive PIT CLK that helps us to remove a lot of extra logic previously introduced to convert from host time to guest time. 4: Some cleanup for SMP code like move cache_tsc_offset to per VP. Signed-off-by: Eddie Dong <eddie.dong@intel.com>
Diffstat (limited to 'xen/include/asm-x86/hvm/vcpu.h')
-rw-r--r--xen/include/asm-x86/hvm/vcpu.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/xen/include/asm-x86/hvm/vcpu.h b/xen/include/asm-x86/hvm/vcpu.h
index 234b0d9186..3503c57ffe 100644
--- a/xen/include/asm-x86/hvm/vcpu.h
+++ b/xen/include/asm-x86/hvm/vcpu.h
@@ -32,6 +32,9 @@ struct hvm_vcpu {
unsigned long ioflags;
struct mmio_op mmio_op;
struct vlapic *vlapic;
+ s64 cache_tsc_offset;
+ u64 guest_time;
+
/* For AP startup */
unsigned long init_sipi_sipi_state;