According to VirtIO spec v1.2, VIRTIO_F_NOTIFICATION_DATA feature indicates that the driver passes extra data along with the queue notifications. In a split queue case, the extra data is 16-bit available index. In a packed queue case, the extra data is 1-bit wrap counter and 15-bit available index. Add support for this feature for MMIO, channel I/O and modern PCI transports.
Showing the changes to include/uapi (1 of 6 files). Show all
Unified · Split
| @@ -99,6 +99,12 @@ · 98 unmodified lines | ||
| 99 | 99 | */ |
| 100 | 100 | #define VIRTIO_F_SR_IOV 37 |
| 101 | 101 | |
| 102 | +/* | |
| 103 | + * This feature indicates that the driver passes extra data (besides | |
| 104 | + * identifying the virtqueue) in its device notifications. | |
| 105 | + */ | |
| 106 | +#define VIRTIO_F_NOTIFICATION_DATA 38 | |
| 107 | + | |
| 102 | 108 | /* |
| 103 | 109 | * This feature indicates that the driver can reset a queue individually. |
| 104 | 110 | */ |