|
|
|
|
|
|
|
|
|
|
xen-ia64-devel
[Xen-ia64-devel] [PATCH] xencomm: support XENMEM_add_to_physmap and XENM
Note: this patch depends on the c/s of 653:8566781df55e
which updates include/xen/interface/memory.h.
[IA64] xencomm: support XENMEM_add_to_physmap and XENMEM_remove_from_phsymap
support XENMEM_add_to_physmap and XENMEM_remove_from_phsymap.
Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
diff -r a35dde520af5 arch/ia64/xen/xcom_privcmd.c
--- a/arch/ia64/xen/xcom_privcmd.c Tue Sep 09 16:57:09 2008 +0900
+++ b/arch/ia64/xen/xcom_privcmd.c Tue Sep 09 18:25:44 2008 +0900
@@ -575,6 +575,34 @@
return ret;
}
+ case XENMEM_add_to_physmap:
+ case XENMEM_remove_from_physmap:
+ {
+ void __user *arg = (void __user *)hypercall->arg[1];
+ size_t argsize;
+ struct xencomm_handle *desc;
+
+ switch (cmd) {
+ case XENMEM_add_to_physmap:
+ argsize = sizeof(struct xen_add_to_physmap);
+ break;
+ case XENMEM_remove_from_physmap:
+ argsize = sizeof(struct xen_remove_from_physmap);
+ break;
+ default:
+ BUG();
+ }
+
+ desc = xencomm_map(arg, argsize);
+ if (desc == NULL)
+ return -ENOMEM;
+
+ ret = xencomm_arch_hypercall_memory_op(cmd, desc);
+
+ xencomm_free(desc);
+ return ret;
+
+ }
default:
printk("%s: unknown memory op %lu\n", __func__, cmd);
ret = -ENOSYS;
--
yamahata
_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-ia64-devel] [PATCH] xencomm: support XENMEM_add_to_physmap and XENMEM_remove_from_phsymap,
Isaku Yamahata <=
|
|
|
|
|