History

vhost-vdpa: introduce uAPI to set group ASID

Follows the vDPA support for associating ASID to a specific virtqueue group. This patch adds a uAPI to support setting them from userspace.

Gautam Dawar committed 4 years ago

Commit 84d7c8f1 parent 2d1fcb72 files · +15 −0Browse files

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

Unified · Split

include/uapi/linux/vhost.h+7−0
@@ -164,4 +164,11 @@ · 163 unmodified lines
164 */164 */
165#define VHOST_VDPA_GET_VRING_GROUP _IOWR(VHOST_VIRTIO, 0x7B, \165#define VHOST_VDPA_GET_VRING_GROUP _IOWR(VHOST_VIRTIO, 0x7B, \
166 struct vhost_vring_state)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#endif174#endif