aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxc/xenctrl.h
diff options
context:
space:
mode:
authorIan Campbell <ian.campbell@citrix.com>2010-10-22 15:14:51 +0100
committerIan Campbell <ian.campbell@citrix.com>2010-10-22 15:14:51 +0100
commit4fd0fc305b2dfad938accb766ac24a083eae135b (patch)
tree680f2337529c6931b0520aa8c30470388cffbd47 /tools/libxc/xenctrl.h
parentf36c8d0c957ba7f971d992f104b9984547e8429b (diff)
downloadxen-4fd0fc305b2dfad938accb766ac24a083eae135b.tar.gz
xen-4fd0fc305b2dfad938accb766ac24a083eae135b.tar.bz2
xen-4fd0fc305b2dfad938accb766ac24a083eae135b.zip
libxc: finalise transition to hypercall buffers.
Rename xc_set_xen_guest_handle to set_xen_guest_handle[0] and remove now unused functions: - xc_memalign - lock_pages - unlock_pages - hcall_buf_prep - hcall_buf_release [0] sed -i -e 's/xc_set_xen_guest_handle/set_xen_guest_handle/g' \ tools/libxc/*.[ch] \ tools/python/xen/lowlevel/xc/xc.c \ tools/python/xen/lowlevel/acm/acm.c \ tools/libxc/ia64/xc_ia64_stubs.c \ tools/security/secpol_tool.c \ tools/misc/xenpm.c Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Signed-off-by: Ian Jackson <ian.jackson.citrix.com>
Diffstat (limited to 'tools/libxc/xenctrl.h')
-rw-r--r--tools/libxc/xenctrl.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/libxc/xenctrl.h b/tools/libxc/xenctrl.h
index 4454d4c4a2..43b2d0b6f6 100644
--- a/tools/libxc/xenctrl.h
+++ b/tools/libxc/xenctrl.h
@@ -252,7 +252,8 @@ typedef struct xc_hypercall_buffer xc_hypercall_buffer_t;
* Set a xen_guest_handle in a type safe manner, ensuring that the
* data pointer has been correctly allocated.
*/
-#define xc_set_xen_guest_handle(_hnd, _val) \
+#undef set_xen_guest_handle
+#define set_xen_guest_handle(_hnd, _val) \
do { \
xc_hypercall_buffer_t _val1; \
typeof(XC__HYPERCALL_BUFFER_NAME(_val)) *_val2 = HYPERCALL_BUFFER(_val); \
@@ -260,7 +261,7 @@ typedef struct xc_hypercall_buffer xc_hypercall_buffer_t;
set_xen_guest_handle_raw(_hnd, (_val2)->hbuf); \
} while (0)
-/* Use with xc_set_xen_guest_handle in place of NULL */
+/* Use with set_xen_guest_handle in place of NULL */
extern xc_hypercall_buffer_t XC__HYPERCALL_BUFFER_NAME(HYPERCALL_BUFFER_NULL);
/*