Follows the support for virtqueue group in vDPA. This patches introduces uAPI to get the virtqueue group ID for a specific virtqueue in vhost-vdpa.
Showing the changes to include/uapi (1 of 2 files). Show all
Unified · Split
| @@ -156,4 +156,12 @@ · 155 unmodified lines | ||
| 156 | 156 | |
| 157 | 157 | /* Get the number of address spaces. */ |
| 158 | 158 | #define VHOST_VDPA_GET_AS_NUM _IOR(VHOST_VIRTIO, 0x7A, unsigned int) |
| 159 | + | |
| 160 | +/* Get the group for a virtqueue: read index, write group in num, | |
| 161 | + * The virtqueue index is stored in the index field of | |
| 162 | + * vhost_vring_state. The group for this specific virtqueue is | |
| 163 | + * returned via num field of vhost_vring_state. | |
| 164 | + */ | |
| 165 | +#define VHOST_VDPA_GET_VRING_GROUP _IOWR(VHOST_VIRTIO, 0x7B, \ | |
| 166 | + struct vhost_vring_state) | |
| 159 | 167 | #endif |