aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/uapi/linux/vhost.h
diff options
context:
space:
mode:
authorZhu Lingshan <lingshan.zhu@intel.com>2024-02-03 00:38:56 +0800
committerMichael S. Tsirkin <mst@redhat.com>2024-03-19 02:45:49 -0400
commit1496c47065f9f8413296780c63374daee9bdae20 (patch)
tree61e2d96bc107449dd75ae7c63d16dbb97619ea09 /include/uapi/linux/vhost.h
parentvdpa/pds: fixes for VF vdpa flr-aer handling (diff)
downloadwireguard-linux-1496c47065f9f8413296780c63374daee9bdae20.tar.xz
wireguard-linux-1496c47065f9f8413296780c63374daee9bdae20.zip
vhost-vdpa: uapi to support reporting per vq size
The size of a virtqueue is a per vq configuration. This commit introduce a new ioctl uAPI to support this flexibility. Signed-off-by: Zhu Lingshan <lingshan.zhu@intel.com> Message-Id: <20240202163905.8834-2-lingshan.zhu@intel.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to '')
-rw-r--r--include/uapi/linux/vhost.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/uapi/linux/vhost.h b/include/uapi/linux/vhost.h
index 649560c685f1..bea697390613 100644
--- a/include/uapi/linux/vhost.h
+++ b/include/uapi/linux/vhost.h
@@ -227,4 +227,11 @@
*/
#define VHOST_VDPA_GET_VRING_DESC_GROUP _IOWR(VHOST_VIRTIO, 0x7F, \
struct vhost_vring_state)
+
+/* Get the queue size of a specific virtqueue.
+ * userspace set the vring index in vhost_vring_state.index
+ * kernel set the queue size in vhost_vring_state.num
+ */
+#define VHOST_VDPA_GET_VRING_SIZE _IOWR(VHOST_VIRTIO, 0x80, \
+ struct vhost_vring_state)
#endif