]> xenbits.xensource.com Git - people/aperard/xen-arm.git/commitdiff
xen/arm: implement map_domain_page_global and unmap_domain_page_global
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Tue, 7 May 2013 14:12:44 +0000 (15:12 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 8 May 2013 10:06:16 +0000 (11:06 +0100)
The implementation uses vmap and vunmap.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/arch/arm/mm.c

index 6bb3005a402811379e3d3f41e5dc81b1320c4d36..2836cbbc580ba95db06e2a1b300b1022578c3df1 100644 (file)
@@ -36,6 +36,7 @@
 #include <asm/flushtlb.h>
 #include <public/memory.h>
 #include <xen/sched.h>
+#include <xen/vmap.h>
 #include <xsm/xsm.h>
 
 struct domain *dom_xen, *dom_io, *dom_cow;
@@ -177,6 +178,16 @@ void clear_fixmap(unsigned map)
     flush_xen_data_tlb_range_va(FIXMAP_ADDR(map), PAGE_SIZE);
 }
 
+void *map_domain_page_global(unsigned long mfn)
+{
+    return vmap(&mfn, 1);
+}
+
+void unmap_domain_page_global(const void *va)
+{
+    vunmap(va);
+}
+
 /* Map a page of domheap memory */
 void *map_domain_page(unsigned long mfn)
 {