Skip to contentSkip to conversation

use a share page to transfer the hypercall parameters for vmx guest.

PATCH New Xiaofeng Ling 1 participant 1 message Sep 5, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 use a share page to transfer the hypercall parameters for vmx guest.

Use a share page to transfer the hypercall parameters for vmx guest. The share page is setuped in event channel pci driver. The point in parameters will traslate to a new value that is against the hypervisor share page virtual address.

b/linux-2.6-xen-sparse/include/asm-xen/asm-i386/hypercall-vmx.h | 201 ++++++++++

 linux-2.6-xen-sparse/include/asm-xen/asm-i386/hypercall.h       |   12
 2 files changed, 212 insertions(+), 1 deletion(-)
linux-2.6-xen-sparse/include/asm-xen/asm-i386/hypercall.h +11 -1
diff -r 287d36b46fa3 linux-2.6-xen-sparse/include/asm-xen/asm-i386/hypercall.h
@@ -31,6 +31,7 @@
 #define __HYPERCALL_H__
 
 #include <asm-xen/xen-public/xen.h>
+
 
 #define _hypercall0(type, name)			\
 ({						\
@@ -114,12 +115,14 @@
 	return _hypercall1(int, set_trap_table, table);
 }
 
+#ifdef CONFIG_XEN
 static inline int
 HYPERVISOR_mmu_update(
 	mmu_update_t *req, int count, int *success_count, domid_t domid)
 {
 	return _hypercall4(int, mmu_update, req, count, success_count, domid);
 }
+#endif
 
 static inline int
 HYPERVISOR_mmuext_op(
@@ -261,12 +264,14 @@
 			   new_val.pte_low, pte_hi, flags);
 }
 
+#ifdef CONFIG_XEN
 static inline int
 HYPERVISOR_event_channel_op(
 	void *op)
 {
 	return _hypercall1(int, event_channel_op, op);
 }
+#endif
 
 static inline int
 HYPERVISOR_xen_version(
@@ -288,13 +293,14 @@
 {
 	return _hypercall1(int, physdev_op, physdev_op);
 }
-
+#ifdef CONFIG_XEN
 static inline int
 HYPERVISOR_grant_table_op(
 	unsigned int cmd, void *uop, unsigned int count)
 {
 	return _hypercall3(int, grant_table_op, cmd, uop, count);
 }
+#endif
 
 static inline int
 HYPERVISOR_update_va_mapping_otherdomain(
@@ -375,6 +381,10 @@
 	return ret;
 }
 
+#ifndef CONFIG_XEN
+#include <asm-xen/asm-i386/hypercall-vmx.h>
+#endif
+
 #endif /* __HYPERCALL_H__ */
 
 /*
linux-2.6-xen-sparse/include/asm-xen/asm-i386/hypercall-vmx.h new file +201 -0

201 lines not on this page · raw message

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel