aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxc/xc_linux.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
commit3143748ef690c9c2206817a8a6b5f97e744b795d (patch)
tree180c09be929ff5a6be67897fa8c9b5c9200262b8 /tools/libxc/xc_linux.c
parentf32797d3310d8eb1851b07249f5270f1be1ae39a (diff)
downloadxen-3143748ef690c9c2206817a8a6b5f97e744b795d.tar.gz
xen-3143748ef690c9c2206817a8a6b5f97e744b795d.tar.bz2
xen-3143748ef690c9c2206817a8a6b5f97e744b795d.zip
libxc: osdep: convert xc_map_foreign_range()
Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Signed-off-by: Ian Jackson <ian.jackson.citrix.com>
Diffstat (limited to 'tools/libxc/xc_linux.c')
-rw-r--r--tools/libxc/xc_linux.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/libxc/xc_linux.c b/tools/libxc/xc_linux.c
index 76d4791845..aa70cc8763 100644
--- a/tools/libxc/xc_linux.c
+++ b/tools/libxc/xc_linux.c
@@ -283,8 +283,9 @@ static void *linux_privcmd_map_foreign_bulk(xc_interface *xch, xc_osdep_handle h
return addr;
}
-void *xc_map_foreign_range(xc_interface *xch, uint32_t dom, int size, int prot,
- unsigned long mfn)
+static void *linux_privcmd_map_foreign_range(xc_interface *xch, xc_osdep_handle h,
+ uint32_t dom, int size, int prot,
+ unsigned long mfn)
{
xen_pfn_t *arr;
int num;
@@ -335,6 +336,7 @@ static struct xc_osdep_ops linux_privcmd_ops = {
.map_foreign_batch = &linux_privcmd_map_foreign_batch,
.map_foreign_bulk = &linux_privcmd_map_foreign_bulk,
+ .map_foreign_range = &linux_privcmd_map_foreign_range,
},
};