aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxc/xc_private.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
commit70d20aed9a6406842d3d957583fbe15c60fd84ec (patch)
tree23042b0553cf041c5304831223fa5f0f883e3e00 /tools/libxc/xc_private.h
parentb545e27bc6994b901c5611a8fea9b0cca648b7dc (diff)
downloadxen-70d20aed9a6406842d3d957583fbe15c60fd84ec.tar.gz
xen-70d20aed9a6406842d3d957583fbe15c60fd84ec.tar.bz2
xen-70d20aed9a6406842d3d957583fbe15c60fd84ec.zip
libxc: convert xc_version over to hypercall buffers
Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Signed-off-by: Ian Jackson <ian.jackson.citrix.com>
Diffstat (limited to 'tools/libxc/xc_private.h')
-rw-r--r--tools/libxc/xc_private.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/libxc/xc_private.h b/tools/libxc/xc_private.h
index 41e22f8c8a..a9394f76d4 100644
--- a/tools/libxc/xc_private.h
+++ b/tools/libxc/xc_private.h
@@ -166,13 +166,14 @@ void xc__hypercall_bounce_post(xc_interface *xch, xc_hypercall_buffer_t *bounce)
int do_xen_hypercall(xc_interface *xch, privcmd_hypercall_t *hypercall);
-static inline int do_xen_version(xc_interface *xch, int cmd, void *dest)
+static inline int do_xen_version(xc_interface *xch, int cmd, xc_hypercall_buffer_t *dest)
{
DECLARE_HYPERCALL;
+ DECLARE_HYPERCALL_BUFFER_ARGUMENT(dest);
hypercall.op = __HYPERVISOR_xen_version;
hypercall.arg[0] = (unsigned long) cmd;
- hypercall.arg[1] = (unsigned long) dest;
+ hypercall.arg[1] = HYPERCALL_BUFFER_AS_ARG(dest);
return do_xen_hypercall(xch, &hypercall);
}