Follows the vDPA support for associating ASID to a specific virtqueue group. This patch adds a uAPI to support setting them from userspace.
Showing the changes to include/uapi (1 of 2 files). Show all
Unified · Split
| @@ -164,4 +164,11 @@ · 163 unmodified lines | ||
| 164 | 164 | */ |
| 165 | 165 | #define VHOST_VDPA_GET_VRING_GROUP _IOWR(VHOST_VIRTIO, 0x7B, \ |
| 166 | 166 | struct vhost_vring_state) |
| 167 | +/* Set the ASID for a virtqueue group. The group index is stored in | |
| 168 | + * the index field of vhost_vring_state, the ASID associated with this | |
| 169 | + * group is stored at num field of vhost_vring_state. | |
| 170 | + */ | |
| 171 | +#define VHOST_VDPA_SET_GROUP_ASID _IOW(VHOST_VIRTIO, 0x7C, \ | |
| 172 | + struct vhost_vring_state) | |
| 173 | + | |
| 167 | 174 | #endif |