aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxc/xc_foreign_memory.c
diff options
context:
space:
mode:
authorIan Campbell <ian.campbell@citrix.com>2010-12-03 09:36:47 +0000
committerIan Campbell <ian.campbell@citrix.com>2010-12-03 09:36:47 +0000
commitd52853b78cbbf036c089ba2811f16388e739a470 (patch)
treec08890c846096725b2e562343bcba6298350d2b0 /tools/libxc/xc_foreign_memory.c
parent3143748ef690c9c2206817a8a6b5f97e744b795d (diff)
downloadxen-d52853b78cbbf036c089ba2811f16388e739a470.tar.gz
xen-d52853b78cbbf036c089ba2811f16388e739a470.tar.bz2
xen-d52853b78cbbf036c089ba2811f16388e739a470.zip
libxc: osdep: convert xc_map_foreign_ranges()
Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Signed-off-by: Ian Jackson <ian.jackson.citrix.com>
Diffstat (limited to 'tools/libxc/xc_foreign_memory.c')
-rw-r--r--tools/libxc/xc_foreign_memory.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/libxc/xc_foreign_memory.c b/tools/libxc/xc_foreign_memory.c
index 95d1d43c78..907c02bd7e 100644
--- a/tools/libxc/xc_foreign_memory.c
+++ b/tools/libxc/xc_foreign_memory.c
@@ -27,6 +27,14 @@ void *xc_map_foreign_range(xc_interface *xch, uint32_t dom,
dom, size, prot, mfn);
}
+void *xc_map_foreign_ranges(xc_interface *xch, uint32_t dom,
+ size_t size, int prot, size_t chunksize,
+ privcmd_mmap_entry_t entries[], int nentries)
+{
+ return xch->ops->u.privcmd.map_foreign_ranges(xch, xch->ops_handle,
+ dom, size, prot, chunksize, entries, nentries);
+}
+
void *xc_map_foreign_batch(xc_interface *xch, uint32_t dom, int prot,
xen_pfn_t *arr, int num)
{