There is a new feature bit allocated in virtio spec to support SR-IOV (Single Root I/O Virtualization): https://github.com/oasis-tcs/virtio-spec/issues/11 This patch enables the support for this feature bit in virtio driver.
Showing the changes to include/uapi (1 of 3 files). Show all
Unified · Split
| @@ -49,7 +49,7 @@ · 48 unmodified lines | |||
| 49 | * transport being used (eg. virtio_ring), the rest are per-device feature | 49 | * transport being used (eg. virtio_ring), the rest are per-device feature |
| 50 | * bits. */ | 50 | * bits. */ |
| 51 | #define VIRTIO_TRANSPORT_F_START 28 | 51 | #define VIRTIO_TRANSPORT_F_START 28 |
| 52 | #define VIRTIO_TRANSPORT_F_END 34 | 52 | #define VIRTIO_TRANSPORT_F_END 38 |
| 53 | 53 | ||
| 54 | #ifndef VIRTIO_CONFIG_NO_LEGACY | 54 | #ifndef VIRTIO_CONFIG_NO_LEGACY |
| 55 | /* Do we get callbacks when the ring is completely used, even if we've | 55 | /* Do we get callbacks when the ring is completely used, even if we've |
| @@ -71,4 +71,9 @@ · 15 unmodified lines | |||
| 71 | * this is for compatibility with legacy systems. | 71 | * this is for compatibility with legacy systems. |
| 72 | */ | 72 | */ |
| 73 | #define VIRTIO_F_IOMMU_PLATFORM 33 | 73 | #define VIRTIO_F_IOMMU_PLATFORM 33 |
| 74 | |||
| 75 | /* | ||
| 76 | * Does the device support Single Root I/O Virtualization? | ||
| 77 | */ | ||
| 78 | #define VIRTIO_F_SR_IOV 37 | ||
| 74 | #endif /* _UAPI_LINUX_VIRTIO_CONFIG_H */ | 79 | #endif /* _UAPI_LINUX_VIRTIO_CONFIG_H */ |