|
116 | 116 | #define VHOST_VSOCK_SET_GUEST_CID _IOW(VHOST_VIRTIO, 0x60, __u64)
|
117 | 117 | #define VHOST_VSOCK_SET_RUNNING _IOW(VHOST_VIRTIO, 0x61, int)
|
118 | 118 |
|
| 119 | +/* VHOST_VDPA specific defines */ |
| 120 | + |
| 121 | +/* Get the device id. The device ids follow the same definition of |
| 122 | + * the device id defined in virtio-spec. |
| 123 | + */ |
| 124 | +#define VHOST_VDPA_GET_DEVICE_ID _IOR(VHOST_VIRTIO, 0x70, __u32) |
| 125 | +/* Get and set the status. The status bits follow the same definition |
| 126 | + * of the device status defined in virtio-spec. |
| 127 | + */ |
| 128 | +#define VHOST_VDPA_GET_STATUS _IOR(VHOST_VIRTIO, 0x71, __u8) |
| 129 | +#define VHOST_VDPA_SET_STATUS _IOW(VHOST_VIRTIO, 0x72, __u8) |
| 130 | +/* Get and set the device config. The device config follows the same |
| 131 | + * definition of the device config defined in virtio-spec. |
| 132 | + */ |
| 133 | +#define VHOST_VDPA_GET_CONFIG _IOR(VHOST_VIRTIO, 0x73, \ |
| 134 | + struct vhost_vdpa_config) |
| 135 | +#define VHOST_VDPA_SET_CONFIG _IOW(VHOST_VIRTIO, 0x74, \ |
| 136 | + struct vhost_vdpa_config) |
| 137 | +/* Enable/disable the ring. */ |
| 138 | +#define VHOST_VDPA_SET_VRING_ENABLE _IOW(VHOST_VIRTIO, 0x75, \ |
| 139 | + struct vhost_vring_state) |
| 140 | +/* Get the max ring size. */ |
| 141 | +#define VHOST_VDPA_GET_VRING_NUM _IOR(VHOST_VIRTIO, 0x76, __u16) |
| 142 | + |
119 | 143 | #endif
|
0 commit comments