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
49 * transport being used (eg. virtio_ring), the rest are per-device feature49 * transport being used (eg. virtio_ring), the rest are per-device feature
50 * bits. */50 * bits. */
51#define VIRTIO_TRANSPORT_F_START 2851#define VIRTIO_TRANSPORT_F_START 28
52#define VIRTIO_TRANSPORT_F_END 3452#define VIRTIO_TRANSPORT_F_END 38
53 53
54#ifndef VIRTIO_CONFIG_NO_LEGACY54#ifndef VIRTIO_CONFIG_NO_LEGACY
55/* Do we get callbacks when the ring is completely used, even if we've55/* 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 3373#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 */