diff options
author | Daniel De Graaf <dgdegra@tycho.nsa.gov> | 2011-10-06 19:38:01 +0100 |
---|---|---|
committer | Daniel De Graaf <dgdegra@tycho.nsa.gov> | 2011-10-06 19:38:01 +0100 |
commit | 399a74471de9f7525e84441c59aa9601133ba828 (patch) | |
tree | b62aa5d71814c09909c358c424ddb861c8f2db8e /tools/libxc/xenctrlosdep.h | |
parent | 1f5552006de96f879ea0bcf342dcf4d9b3b06354 (diff) | |
download | xen-399a74471de9f7525e84441c59aa9601133ba828.tar.gz xen-399a74471de9f7525e84441c59aa9601133ba828.tar.bz2 xen-399a74471de9f7525e84441c59aa9601133ba828.zip |
libxc: add xc_gntshr_* functions
These functions and the xc_gntshr device (/dev/xen/gntalloc on linux)
allow applications to create pages shared with other domains.
Signed-off-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/libxc/xenctrlosdep.h')
-rw-r--r-- | tools/libxc/xenctrlosdep.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/libxc/xenctrlosdep.h b/tools/libxc/xenctrlosdep.h index 1c6317e52e..a36c4aab7b 100644 --- a/tools/libxc/xenctrlosdep.h +++ b/tools/libxc/xenctrlosdep.h @@ -54,6 +54,7 @@ enum xc_osdep_type { XC_OSDEP_PRIVCMD, XC_OSDEP_EVTCHN, XC_OSDEP_GNTTAB, + XC_OSDEP_GNTSHR, }; /* Opaque handle internal to the backend */ @@ -116,6 +117,15 @@ struct xc_osdep_ops uint32_t count); int (*set_max_grants)(xc_gnttab *xcg, xc_osdep_handle h, uint32_t count); } gnttab; + struct { + void *(*share_pages)(xc_gntshr *xcg, xc_osdep_handle h, + uint32_t domid, int count, + uint32_t *refs, int writable, + uint32_t notify_offset, + evtchn_port_t notify_port); + int (*munmap)(xc_gntshr *xcg, xc_osdep_handle h, + void *start_address, uint32_t count); + } gntshr; } u; }; typedef struct xc_osdep_ops xc_osdep_ops; |