aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxc/xenguest.h
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2009-06-01 14:12:53 +0100
committerKeir Fraser <keir.fraser@citrix.com>2009-06-01 14:12:53 +0100
commit602097e84bfe3481d12d6de7a257005a1aa51b89 (patch)
treed0d26b535e65927127ca189c3bbf5aa939daa26e /tools/libxc/xenguest.h
parent79cda3bac992055caa1ebe331155f974fe59125b (diff)
downloadxen-602097e84bfe3481d12d6de7a257005a1aa51b89.tar.gz
xen-602097e84bfe3481d12d6de7a257005a1aa51b89.tar.bz2
xen-602097e84bfe3481d12d6de7a257005a1aa51b89.zip
libxc: export xc_map_m2p() so that it can be called outside.
Signed-off-by: Jiang, Yunhong <yunhong.jiang@intel.com>
Diffstat (limited to 'tools/libxc/xenguest.h')
-rw-r--r--tools/libxc/xenguest.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/libxc/xenguest.h b/tools/libxc/xenguest.h
index 32de5bdd93..cd55f89cca 100644
--- a/tools/libxc/xenguest.h
+++ b/tools/libxc/xenguest.h
@@ -163,4 +163,17 @@ int xc_mark_page_offline(int xc, unsigned long start,
int xc_query_page_offline_status(int xc, unsigned long start,
unsigned long end, uint32_t *status);
+
+/**
+ * This function map m2p table
+ * @parm xc_handle a handle to an open hypervisor interface
+ * @parm max_mfn the max pfn
+ * @parm prot the flags to map, such as read/write etc
+ * @parm mfn0 return the first mfn, can be NULL
+ * @return mapped m2p table on success, NULL on failure
+ */
+xen_pfn_t *xc_map_m2p(int xc_handle,
+ unsigned long max_mfn,
+ int prot,
+ unsigned long *mfn0);
#endif /* XENGUEST_H */