History

virtio_pci: support enabling VFs

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.

Tiwei Bie committed 8 years ago

Commit cfecc291 parent 670ae9c3 files · +50 −1Browse files

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

Unified · Split

include/uapi/linux/virtio_config.h+6−1
@@ -49,7 +49,7 @@ · 48 unmodified lines
4949 * transport being used (eg. virtio_ring), the rest are per-device feature
5050 * bits. */
5151 #define VIRTIO_TRANSPORT_F_START 28
52−#define VIRTIO_TRANSPORT_F_END 34
52+#define VIRTIO_TRANSPORT_F_END 38
5353
5454 #ifndef VIRTIO_CONFIG_NO_LEGACY
5555 /* Do we get callbacks when the ring is completely used, even if we've
@@ -71,4 +71,9 @@ · 15 unmodified lines
7171 * this is for compatibility with legacy systems.
7272 */
7373 #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
7479 #endif /* _UAPI_LINUX_VIRTIO_CONFIG_H */