diff options
Diffstat (limited to 'xen/include/asm-x86/vmx.h')
-rw-r--r-- | xen/include/asm-x86/vmx.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/xen/include/asm-x86/vmx.h b/xen/include/asm-x86/vmx.h index 1aab977981..66974a156c 100644 --- a/xen/include/asm-x86/vmx.h +++ b/xen/include/asm-x86/vmx.h @@ -26,6 +26,8 @@ #include <asm/vmx_vmcs.h> #include <asm/i387.h> +#include <public/io/ioreq.h> + extern void vmx_asm_vmexit_handler(struct cpu_user_regs); extern void vmx_asm_do_resume(void); extern void vmx_asm_do_launch(void); @@ -337,4 +339,14 @@ static inline int vmx_paging_enabled(struct vcpu *v) return (cr0 & X86_CR0_PE) && (cr0 & X86_CR0_PG); } +static inline vcpu_iodata_t *get_vio(struct domain *d, unsigned long cpu) +{ + return &((shared_iopage_t *) d->arch.vmx_platform.shared_page_va)->vcpu_iodata[cpu]; +} + +static inline int iopacket_port(struct domain *d) +{ + return ((shared_iopage_t *) d->arch.vmx_platform.shared_page_va)->sp_global.eport; +} + #endif /* __ASM_X86_VMX_H__ */ |