Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/xen/include add privcmd ioctl that got introduced w...
details: https://anonhg.NetBSD.org/src/rev/ce2c99eb0de6
branches: trunk
changeset: 759723:ce2c99eb0de6
user: cegger <cegger%NetBSD.org@localhost>
date: Wed Dec 15 14:45:47 2010 +0000
description:
add privcmd ioctl that got introduced with Xen 4
diffstat:
sys/arch/xen/include/xenio.h | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diffs (33 lines):
diff -r 5f9b4a45c821 -r ce2c99eb0de6 sys/arch/xen/include/xenio.h
--- a/sys/arch/xen/include/xenio.h Wed Dec 15 14:28:22 2010 +0000
+++ b/sys/arch/xen/include/xenio.h Wed Dec 15 14:45:47 2010 +0000
@@ -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. */
Home |
Main Index |
Thread Index |
Old Index