|
89 | 89 |
|
90 | 90 | /* Set or get vhost backend capability */
|
91 | 91 |
|
92 |
| -/* Use message type V2 */ |
93 |
| -#define VHOST_BACKEND_F_IOTLB_MSG_V2 0x1 |
94 |
| -/* IOTLB can accept batching hints */ |
95 |
| -#define VHOST_BACKEND_F_IOTLB_BATCH 0x2 |
96 |
| - |
97 | 92 | #define VHOST_SET_BACKEND_FEATURES _IOW(VHOST_VIRTIO, 0x25, __u64)
|
98 | 93 | #define VHOST_GET_BACKEND_FEATURES _IOR(VHOST_VIRTIO, 0x26, __u64)
|
99 | 94 |
|
|
150 | 145 | /* Get the valid iova range */
|
151 | 146 | #define VHOST_VDPA_GET_IOVA_RANGE _IOR(VHOST_VIRTIO, 0x78, \
|
152 | 147 | struct vhost_vdpa_iova_range)
|
153 |
| - |
154 | 148 | /* Get the config size */
|
155 | 149 | #define VHOST_VDPA_GET_CONFIG_SIZE _IOR(VHOST_VIRTIO, 0x79, __u32)
|
156 | 150 |
|
157 | 151 | /* Get the count of all virtqueues */
|
158 | 152 | #define VHOST_VDPA_GET_VQS_COUNT _IOR(VHOST_VIRTIO, 0x80, __u32)
|
159 | 153 |
|
| 154 | +/* Get the number of virtqueue groups. */ |
| 155 | +#define VHOST_VDPA_GET_GROUP_NUM _IOR(VHOST_VIRTIO, 0x81, __u32) |
| 156 | + |
| 157 | +/* Get the number of address spaces. */ |
| 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) |
| 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 | + |
160 | 174 | #endif
|
0 commit comments