History

vhost-vdpa: introduce uAPI to get the number of address spaces

This patch introduces the uAPI for getting the number of address spaces supported by this vDPA device.

Gautam Dawar committed 4 years ago

Commit a0c95f21 parent 3ace88b2 files · +5 −0Browse files

Showing the changes to include/uapi (1 of 2 files). Show all

Unified · Split

include/uapi/linux/vhost.h+2−0
@@ -154,4 +154,6 @@ · 153 unmodified lines
154154 /* Get the number of virtqueue groups. */
155155 #define VHOST_VDPA_GET_GROUP_NUM _IOR(VHOST_VIRTIO, 0x81, __u32)
156156
157+/* Get the number of address spaces. */
158+#define VHOST_VDPA_GET_AS_NUM _IOR(VHOST_VIRTIO, 0x7A, unsigned int)
157159 #endif