xen/arm: implement map_domain_page_global and unmap_domain_page_global

The implementation uses vmap and vunmap.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
This commit is contained in:
Stefano Stabellini authored and Ian Campbell committed 2013-05-08 11:06:16 +01:00
1 parent f62544055c
commit a32dbcef6d
1 file changed
+11
+11
View 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)
{
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.