WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

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

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] libxc: Update for NetBSD
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 10 Jun 2008 08:50:11 -0700
Delivery-date: Tue, 10 Jun 2008 08:50:12 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] libxc: Update for NetBSD, Xen patchbot-unstable <=