History

vhost-vdpa: uAPI to get virtqueue group id

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.

Gautam Dawar committed 4 years ago

Commit 2d1fcb71 parent a0c95f22 files · +16 −0Browse files

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

Unified · Split

include/uapi/linux/vhost.h+8−0
@@ -156,4 +156,12 @@ · 155 unmodified lines
156156
157157 /* Get the number of address spaces. */
158158 #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)
159167 #endif

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t