aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/asm-x86/hvm/support.h
diff options
context:
space:
mode:
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-04-05 14:29:18 +0100
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-04-05 14:29:18 +0100
commitaeb2e1298b7f7e3bddc3f34a53928e3a445019a1 (patch)
tree92d5e995a6737ba5802cdde1647c9818e7682b8e /xen/include/asm-x86/hvm/support.h
parentd222ec47c364c03cee474967d9977fea5571d2a8 (diff)
downloadxen-aeb2e1298b7f7e3bddc3f34a53928e3a445019a1.tar.gz
xen-aeb2e1298b7f7e3bddc3f34a53928e3a445019a1.tar.bz2
xen-aeb2e1298b7f7e3bddc3f34a53928e3a445019a1.zip
PV-on-HVM: Add new ioreq 'invalidate' for zapping ioemu-dm mapccahe
after balloon operations in an HVM guest. This removes the I/O port hack from the guest OS, and from ioemu. Also we flush on reservation *increases* as well as decreases. This is necessary until qemu-dm can demand-fault page mappings into existing valid buckets. Signed-off-by: Steven Hand <steven@xensource.com> 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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/xen/include/asm-x86/hvm/support.h b/xen/include/asm-x86/hvm/support.h
index 9880f920a0..1d331ef5da 100644
--- a/xen/include/asm-x86/hvm/support.h
+++ b/xen/include/asm-x86/hvm/support.h
@@ -228,6 +228,9 @@ int hvm_copy_from_guest_virt(void *buf, unsigned long vaddr, int size);
void hvm_print_line(struct vcpu *v, const char c);
void hlt_timer_fn(void *data);
+#define HVM_HCALL_completed 0 /* hypercall completed - no further action */
+#define HVM_HCALL_preempted 1 /* hypercall preempted - re-execute VMCALL */
+#define HVM_HCALL_invalidate 2 /* invalidate ioemu-dm memory cache */
int hvm_do_hypercall(struct cpu_user_regs *pregs);
void hvm_hlt(unsigned long rflags);