aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxc/xc_private.h
diff options
context:
space:
mode:
authorIan Campbell <ian.campbell@citrix.com>2010-12-23 15:32:52 +0000
committerIan Campbell <ian.campbell@citrix.com>2010-12-23 15:32:52 +0000
commit94705cc4bfe4d9d749d86f49045f62ed9e48a0bc (patch)
tree2ff00e7ac3769d5f695c5e7a2d7ddbf1060fa37d /tools/libxc/xc_private.h
parent3e446a35ee82c738367e8f90e3bc9166687043a8 (diff)
downloadxen-94705cc4bfe4d9d749d86f49045f62ed9e48a0bc.tar.gz
xen-94705cc4bfe4d9d749d86f49045f62ed9e48a0bc.tar.bz2
xen-94705cc4bfe4d9d749d86f49045f62ed9e48a0bc.zip
libxc: convert gnttab interfaces to use an opaque handle type
The xc_interface previously passed to xc_gnttab_* was only used for logging which can now be done via the xc_gnttab handle instead. This makes the interface consistent with the changes made to the main interface in 21483:779c0ef9682c. Also update QEMU_TAG to pull in the corresponding qemu change. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/libxc/xc_private.h')
-rw-r--r--tools/libxc/xc_private.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/libxc/xc_private.h b/tools/libxc/xc_private.h
index 5cd936cb72..8f3b2a2d0d 100644
--- a/tools/libxc/xc_private.h
+++ b/tools/libxc/xc_private.h
@@ -68,6 +68,7 @@
enum xc_interface_type {
XC_INTERFACE_PRIVCMD,
XC_INTERFACE_EVTCHN,
+ XC_INTERFACE_GNTTAB,
};
struct xc_interface_core {
@@ -269,6 +270,9 @@ int xc_interface_close_core(struct xc_interface_core *xch); /* no logging */
int xc_evtchn_open_core(struct xc_interface_core *xce); /* returns fd, logs errors */
int xc_evtchn_close_core(struct xc_interface_core *xce); /* no logging */
+int xc_gnttab_open_core(struct xc_interface_core *xcg); /* returns fd, logs errors */
+int xc_gnttab_close_core(struct xc_interface_core *xcg); /* no logging */
+
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);