WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-ia64-devel

[Xen-ia64-devel] [PATCH] xencomm: support XENMEM_add_to_physmap and XENM

To: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-ia64-devel] [PATCH] xencomm: support XENMEM_add_to_physmap and XENMEM_remove_from_phsymap
From: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
Date: Tue, 9 Sep 2008 21:33:49 +0900
Delivery-date: Tue, 09 Sep 2008 05:33:53 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.6i
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 <=