libxc: Update for NetBSD
PATCH 1/1 libxc: Update for NetBSD
Hi!
Attached patch returns hypercall return value
when ioctl was successful.
Signed-off-by Christoph Egger <[email protected]>
Signature · 12 lines
AMD Saxony, Dresden, Germany Operating System Research Center Legal Information: AMD Saxony Limited Liability Company & Co. KG Sitz (Geschäftsanschrift): Wilschdorfer Landstr. 101, 01109 Dresden, Deutschland Registergericht Dresden: HRA 4896 vertretungsberechtigter Komplementär: AMD Saxony LLC (Sitz Wilmington, Delaware, USA) Geschäftsführer der AMD Saxony LLC: Dr. Hans-R. Deppe, Thomas McCoy
tools/include/xen-sys/NetBSD/privcmd.h +1 -0
@@ -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 {
tools/libxc/xc_netbsd.c +5 -1
@@ -142,9 +142,13 @@ static int do_privcmd(int xc_handle, unsint 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-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel