[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 1/6] linux-headers: sync vhost.h
From: |
Greg Kurz |
Subject: |
[Qemu-devel] [PATCH 1/6] linux-headers: sync vhost.h |
Date: |
Wed, 17 Jun 2015 15:23:29 +0200 |
User-agent: |
StGit/0.17.1-dirty |
This patch brings the cross-endian vhost API to QEMU.
Signed-off-by: Greg Kurz <address@hidden>
---
linux-headers/linux/vhost.h | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/linux-headers/linux/vhost.h b/linux-headers/linux/vhost.h
index c656f61cfc75..ead86db91a08 100644
--- a/linux-headers/linux/vhost.h
+++ b/linux-headers/linux/vhost.h
@@ -103,6 +103,20 @@ struct vhost_memory {
/* Get accessor: reads index, writes value in num */
#define VHOST_GET_VRING_BASE _IOWR(VHOST_VIRTIO, 0x12, struct
vhost_vring_state)
+/* Set the vring byte order in num. Valid values are VHOST_VRING_LITTLE_ENDIAN
+ * or VHOST_VRING_BIG_ENDIAN (other values return -EINVAL).
+ * The byte order cannot be changed while the device is active: trying to do so
+ * returns -EBUSY.
+ * This is a legacy only API that is simply ignored when VIRTIO_F_VERSION_1 is
+ * set.
+ * Not all kernel configurations support this ioctl, but all configurations
that
+ * support SET also support GET.
+ */
+#define VHOST_VRING_LITTLE_ENDIAN 0
+#define VHOST_VRING_BIG_ENDIAN 1
+#define VHOST_SET_VRING_ENDIAN _IOW(VHOST_VIRTIO, 0x13, struct
vhost_vring_state)
+#define VHOST_GET_VRING_ENDIAN _IOW(VHOST_VIRTIO, 0x14, struct
vhost_vring_state)
+
/* The following ioctls use eventfd file descriptors to signal and poll
* for events. */
- [Qemu-devel] [PATCH 0/6] vhost: cross-endian support, Greg Kurz, 2015/06/17
- [Qemu-devel] [PATCH 3/6] vhost: set vring endianness for legacy virtio, Greg Kurz, 2015/06/17
- [Qemu-devel] [PATCH 5/6] vhost-net: tell tap backend about the vnet endianness, Greg Kurz, 2015/06/17
- [Qemu-devel] [PATCH 4/6] tap: add VNET_LE/VNET_BE operations, Greg Kurz, 2015/06/17
- [Qemu-devel] [PATCH 6/6] vhost_net: re-enable when cross endian, Greg Kurz, 2015/06/17
- [Qemu-devel] [PATCH 1/6] linux-headers: sync vhost.h,
Greg Kurz <=
- [Qemu-devel] [PATCH 2/6] virtio: introduce virtio_legacy_is_cross_endian(), Greg Kurz, 2015/06/17
- Re: [Qemu-devel] [PATCH 0/6] vhost: cross-endian support, Michael S. Tsirkin, 2015/06/17