mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
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:
1 parent
f62544055c
commit
a32dbcef6d
1 file changed
+11
@@ -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)
|
||||
{
|
||||
|
||||