diff options
author | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2006-02-24 17:32:58 +0100 |
---|---|---|
committer | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2006-02-24 17:32:58 +0100 |
commit | 143dc151372f82434dd265119b064d3acc654ed7 (patch) | |
tree | 7944074025ab491d431fa6fd0fa295c7cd9c1238 /xen/include/asm-x86/hvm/vcpu.h | |
parent | 6b2c1a390cc96ee3504a77aa571bafec1caad0ee (diff) | |
download | xen-143dc151372f82434dd265119b064d3acc654ed7.tar.gz xen-143dc151372f82434dd265119b064d3acc654ed7.tar.bz2 xen-143dc151372f82434dd265119b064d3acc654ed7.zip |
Bring up AP of VMX domain.
1) add INIT-SIPI-SIPI IPI sequence handling code to HVM virtual lapic
code.
2) add an new interface init_ap_context to hvm_funcs, and implement the
VMX side.
3) add a hvm generic function hvm_bringup_ap, which in turn calls
init_ap_context.
Signed-off-by: Xin Li <xin.b.li@intel.com>
Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
Diffstat (limited to 'xen/include/asm-x86/hvm/vcpu.h')
-rw-r--r-- | xen/include/asm-x86/hvm/vcpu.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/xen/include/asm-x86/hvm/vcpu.h b/xen/include/asm-x86/hvm/vcpu.h index 5e0a11c40f..234b0d9186 100644 --- a/xen/include/asm-x86/hvm/vcpu.h +++ b/xen/include/asm-x86/hvm/vcpu.h @@ -25,10 +25,15 @@ #include <asm/hvm/vmx/vmcs.h> #include <asm/hvm/svm/vmcb.h> +#define HVM_VCPU_INIT_SIPI_SIPI_STATE_NORM 0 +#define HVM_VCPU_INIT_SIPI_SIPI_STATE_WAIT_SIPI 1 + struct hvm_vcpu { - unsigned long ioflags; - struct mmio_op mmio_op; - struct vlapic *vlapic; + unsigned long ioflags; + struct mmio_op mmio_op; + struct vlapic *vlapic; + /* For AP startup */ + unsigned long init_sipi_sipi_state; union { struct arch_vmx_struct vmx; |