From deb36502454d30eff815e09a0ade1c732366ff4c Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Tue, 10 Jun 2008 13:49:02 +0100 Subject: libxc: Update for NetBSD returns hypercall return value when ioctl was successful. Signed-off-by: Christoph Egger --- tools/libxc/xc_netbsd.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tools/libxc/xc_netbsd.c') diff --git a/tools/libxc/xc_netbsd.c b/tools/libxc/xc_netbsd.c index 81c86d1064..036f64879c 100644 --- a/tools/libxc/xc_netbsd.c +++ b/tools/libxc/xc_netbsd.c @@ -142,9 +142,13 @@ static int do_privcmd(int xc_handle, unsigned int cmd, unsigned long data) int do_xen_hypercall(int xc_handle, privcmd_hypercall_t *hypercall) { - return do_privcmd(xc_handle, + int error = do_privcmd(xc_handle, IOCTL_PRIVCMD_HYPERCALL, (unsigned long)hypercall); + if (error) + return error; + else + return (hypercall->retval); } #define EVTCHN_DEV_NAME "/dev/xenevt" -- cgit v1.2.3