diff options
| author | Tiwei Bie <tiwei.bie@intel.com> | 2018-06-01 00:02:39 -0400 |
|---|---|---|
| committer | Michael S. Tsirkin <mst@redhat.com> | 2018-06-11 21:59:29 -0400 |
| commit | cfecc2918d2b3c5e86ff1a6c95eabbbb17bb8fd3 (patch) | |
| tree | e1d6119d7345b602e538f1eb6be11ad432e4ee3c /include/uapi/linux/virtio_config.h | |
| parent | 670ae9caaca467ea1bfd325cb2a5c98ba87f94ad (diff) | |
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.
Signed-off-by: Tiwei Bie <tiwei.bie@intel.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include/uapi/linux/virtio_config.h')
| -rw-r--r-- | include/uapi/linux/virtio_config.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/uapi/linux/virtio_config.h b/include/uapi/linux/virtio_config.h index 308e2096291f..b7c1f4e7d59e 100644 --- a/include/uapi/linux/virtio_config.h +++ b/include/uapi/linux/virtio_config.h | |||
| @@ -49,7 +49,7 @@ | |||
| 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 @@ | |||
| 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 */ |
