Module Name: src Committed By: cegger Date: Wed Dec 15 14:45:47 UTC 2010
Modified Files: src/sys/arch/xen/include: xenio.h Log Message: add privcmd ioctl that got introduced with Xen 4 To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/sys/arch/xen/include/xenio.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/xen/include/xenio.h diff -u src/sys/arch/xen/include/xenio.h:1.7 src/sys/arch/xen/include/xenio.h:1.8 --- src/sys/arch/xen/include/xenio.h:1.7 Fri Sep 3 06:07:24 2010 +++ src/sys/arch/xen/include/xenio.h Wed Dec 15 14:45:47 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: xenio.h,v 1.7 2010/09/03 06:07:24 cegger Exp $ */ +/* $NetBSD: xenio.h,v 1.8 2010/12/15 14:45:47 cegger Exp $ */ /****************************************************************************** * privcmd.h @@ -58,6 +58,14 @@ unsigned long *arr; /* array of mfns - top nibble set on err */ } privcmd_mmapbatch_t; +typedef struct privcmd_mmapbatch_v2 { + int num; /* number of pages to populate */ + domid_t dom; /* target domain */ + uint64_t addr; /* virtual address */ + const xen_pfn_t *arr; /* array of mfns */ + int *err; /* array of error codes */ +} privcmd_mmapbatch_v2_t; + typedef struct privcmd_blkmsg { unsigned long op; @@ -103,6 +111,8 @@ */ #define IOCTL_PRIVCMD_INITDOMAIN_EVTCHN \ _IOR('P', 5, int) +#define IOCTL_PRIVCMD_MMAPBATCH_V2 \ + _IOW('P", 6, privcmd_mmapbatch_v2_t) /* Interface to /dev/xenevt */ /* EVTCHN_RESET: Clear and reinit the event buffer. Clear error condition. */