[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] libxc: Update for NetBSD



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1213102142 -3600
# Node ID 8a36f7f708596b8cbfcb83fa1e0723f0bf67ad60
# Parent  9af7a535225f3924b8b5c8acfd362a2e6bffc3d0
libxc: Update for NetBSD

returns hypercall return value when ioctl was successful.

Signed-off-by: Christoph Egger <Christoph.Egger@xxxxxxx>
---
 tools/include/xen-sys/NetBSD/privcmd.h |    1 +
 tools/libxc/xc_netbsd.c                |    6 +++++-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff -r 9af7a535225f -r 8a36f7f70859 tools/include/xen-sys/NetBSD/privcmd.h
--- a/tools/include/xen-sys/NetBSD/privcmd.h    Tue Jun 10 13:45:29 2008 +0100
+++ b/tools/include/xen-sys/NetBSD/privcmd.h    Tue Jun 10 13:49:02 2008 +0100
@@ -36,6 +36,7 @@ typedef struct privcmd_hypercall
 {
     unsigned long op;
     unsigned long arg[5];
+    long retval;
 } privcmd_hypercall_t;
 
 typedef struct privcmd_mmap_entry {
diff -r 9af7a535225f -r 8a36f7f70859 tools/libxc/xc_netbsd.c
--- a/tools/libxc/xc_netbsd.c   Tue Jun 10 13:45:29 2008 +0100
+++ b/tools/libxc/xc_netbsd.c   Tue Jun 10 13:49:02 2008 +0100
@@ -142,9 +142,13 @@ static int do_privcmd(int xc_handle, uns
 
 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"

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.