History

vdpa: support exposing the config size to userspace

- GET_CONFIG_SIZE: return the size of the virtio config space. The size contains the fields which are conditional on feature bits.

Longpeng committed 4 years ago

Commit a61280d1 parent f1781be3 files · +23 −1Browse files

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

Unified · Split

include/uapi/linux/vhost.h+4−0
@@ -150,4 +150,8 @@ · 149 unmodified lines
150150 /* Get the valid iova range */
151151 #define VHOST_VDPA_GET_IOVA_RANGE _IOR(VHOST_VIRTIO, 0x78, \
152152 struct vhost_vdpa_iova_range)
153+
154+/* Get the config size */
155+#define VHOST_VDPA_GET_CONFIG_SIZE _IOR(VHOST_VIRTIO, 0x79, __u32)
156+
153157 #endif