aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/asm-x86/hvm/support.h
diff options
context:
space:
mode:
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-01-25 18:20:58 +0000
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-01-25 18:20:58 +0000
commit364a836fe691e687923c5b895b8d23ed1adf4d1f (patch)
treef4ac338bf610ddbe746cf2b43cf47efc4d593bda /xen/include/asm-x86/hvm/support.h
parentb41243501b4bce949ff65ba44a23d27fe58b5e00 (diff)
downloadxen-364a836fe691e687923c5b895b8d23ed1adf4d1f.tar.gz
xen-364a836fe691e687923c5b895b8d23ed1adf4d1f.tar.bz2
xen-364a836fe691e687923c5b895b8d23ed1adf4d1f.zip
hvm: Define a global I/O access bitmap, allowing direct access to port 0x80.
Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'xen/include/asm-x86/hvm/support.h')
-rw-r--r--xen/include/asm-x86/hvm/support.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/xen/include/asm-x86/hvm/support.h b/xen/include/asm-x86/hvm/support.h
index 3d40cd9962..2d15019bb7 100644
--- a/xen/include/asm-x86/hvm/support.h
+++ b/xen/include/asm-x86/hvm/support.h
@@ -90,8 +90,6 @@ enum hval_bitmaps {
EXCEPTION_BITMAP_BP )
#endif
-#define PC_DEBUG_PORT 0x80
-
#define VMX_DELIVER_NO_ERROR_CODE -1
#if HVM_DEBUG
@@ -244,17 +242,19 @@ static inline void hvm_get_buffer(hvm_domain_context_t *h, char *buf, int len)
#define hvm_get_struct(_h, _p) \
hvm_get_buffer((_h), (char *)(_p), sizeof(*(_p)))
+int hvm_save(struct vcpu*, hvm_domain_context_t *h);
+int hvm_load(struct vcpu*, hvm_domain_context_t *h);
-extern int hvm_save(struct vcpu*, hvm_domain_context_t *h);
-extern int hvm_load(struct vcpu*, hvm_domain_context_t *h);
-
-extern int arch_sethvm_ctxt(struct vcpu *v, struct hvm_domain_context *c);
-extern int arch_gethvm_ctxt(struct vcpu *v, struct hvm_domain_context *c);
+int arch_sethvm_ctxt(struct vcpu *v, struct hvm_domain_context *c);
+int arch_gethvm_ctxt(struct vcpu *v, struct hvm_domain_context *c);
-extern void shpage_init(struct domain *d, shared_iopage_t *sp);
+void shpage_init(struct domain *d, shared_iopage_t *sp);
+extern char hvm_io_bitmap[];
extern int hvm_enabled;
+void hvm_enable(void);
+
int hvm_copy_to_guest_phys(paddr_t paddr, void *buf, int size);
int hvm_copy_from_guest_phys(void *buf, paddr_t paddr, int size);
int hvm_copy_to_guest_virt(unsigned long vaddr, void *buf, int size);