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-07-14 13:59:15 +0100
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2006-07-14 13:59:15 +0100
commit3d4a768adbb4e7ba0089e7149138b82bb1209119 (patch)
tree889319ea6c808b30254c9df4403f15acc76916d7 /xen/include/asm-x86/hvm/vcpu.h
parent6af68a0b67cdcceeb945b0ee9b561ac2101b8331 (diff)
downloadxen-3d4a768adbb4e7ba0089e7149138b82bb1209119.tar.gz
xen-3d4a768adbb4e7ba0089e7149138b82bb1209119.tar.bz2
xen-3d4a768adbb4e7ba0089e7149138b82bb1209119.zip
[HVM] Create I/O context for MMIO/PIO processing in an
off-stack structure. Signed-off-by: Keir Fraser <keir@xensource.com> Signed-off-by: Xin B Li <xin.b.li@intel.com>
Diffstat (limited to 'xen/include/asm-x86/hvm/vcpu.h')
-rw-r--r--xen/include/asm-x86/hvm/vcpu.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/xen/include/asm-x86/hvm/vcpu.h b/xen/include/asm-x86/hvm/vcpu.h
index 80dd267fc9..efd1f4c2bd 100644
--- a/xen/include/asm-x86/hvm/vcpu.h
+++ b/xen/include/asm-x86/hvm/vcpu.h
@@ -29,17 +29,17 @@
#define HVM_VCPU_INIT_SIPI_SIPI_STATE_WAIT_SIPI 1
struct hvm_vcpu {
- unsigned long ioflags;
- struct mmio_op mmio_op;
- struct vlapic *vlapic;
- s64 cache_tsc_offset;
- u64 guest_time;
+ unsigned long ioflags;
+ struct hvm_io_op io_op;
+ struct vlapic *vlapic;
+ s64 cache_tsc_offset;
+ u64 guest_time;
/* For AP startup */
- unsigned long init_sipi_sipi_state;
+ unsigned long init_sipi_sipi_state;
/* Flags */
- int flag_dr_dirty;
+ int flag_dr_dirty;
union {
struct arch_vmx_struct vmx;
@@ -47,7 +47,9 @@ struct hvm_vcpu {
} u;
};
-#define ARCH_HVM_IO_WAIT 1 /* Waiting for I/O completion */
+#define ARCH_HVM_IO_WAIT 1 /* Waiting for I/O completion */
+
+#define HVM_CONTEXT_STACK_BYTES (offsetof(struct cpu_user_regs, error_code))
#endif /* __ASM_X86_HVM_VCPU_H__ */