|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [PATCH v4 13/16] privcmd: Add definition for new Linux privcmd to access new Xen hypercall
From: Frediano Ziglio <frediano.ziglio@xxxxxxxxxx>
Userspace should use new ioctl to access new hypercall.
Signed-off-by: Frediano Ziglio <frediano.ziglio@xxxxxxxxxx>
---
tools/include/xen-sys/Linux/privcmd.h | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/tools/include/xen-sys/Linux/privcmd.h
b/tools/include/xen-sys/Linux/privcmd.h
index 607dfa2287..4b80eeae06 100644
--- a/tools/include/xen-sys/Linux/privcmd.h
+++ b/tools/include/xen-sys/Linux/privcmd.h
@@ -100,6 +100,14 @@ typedef struct privcmd_pcidev_get_gsi {
__u32 gsi;
} privcmd_pcidev_get_gsi_t;
+typedef struct privcmd_foreigncopy {
+ domid_t dom; /* Foreign domain. */
+ __u16 dir; /* Direction, 0 from, 1 to. */
+ __u32 num; /* Number of pages to copy. */
+ const xen_pfn_t __user *pfns; /* Array of pfns. */
+ void __user *buffer; /* Buffer to copy to/from, must be page aligned.
*/
+} privcmd_foreigncopy_t;
+
/*
* @cmd: IOCTL_PRIVCMD_HYPERCALL
* @arg: &privcmd_hypercall_t
@@ -121,6 +129,8 @@ typedef struct privcmd_pcidev_get_gsi {
_IOC(_IOC_NONE, 'P', 7, sizeof(privcmd_mmap_resource_t))
#define IOCTL_PRIVCMD_PCIDEV_GET_GSI \
_IOC(_IOC_NONE, 'P', 10, sizeof(privcmd_pcidev_get_gsi_t))
+#define IOCTL_PRIVCMD_FOREIGNCOPY \
+ _IOC(_IOC_NONE, 'P', 11, sizeof(privcmd_foreigncopy_t))
#define IOCTL_PRIVCMD_UNIMPLEMENTED \
_IOC(_IOC_NONE, 'P', 0xFF, 0)
--
2.54.0
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |