diff options
author | Tiwei Bie <tiwei.bie@intel.com> | 2018-06-01 07:02:39 +0300 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2018-06-12 04:59:29 +0300 |
commit | cfecc2918d2b3c5e86ff1a6c95eabbbb17bb8fd3 (patch) | |
tree | e1d6119d7345b602e538f1eb6be11ad432e4ee3c /include/uapi/linux | |
parent | 670ae9caaca467ea1bfd325cb2a5c98ba87f94ad (diff) | |
download | linux-cfecc2918d2b3c5e86ff1a6c95eabbbb17bb8fd3.tar.xz |
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')
-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 @@ * transport being used (eg. virtio_ring), the rest are per-device feature * bits. */ #define VIRTIO_TRANSPORT_F_START 28 -#define VIRTIO_TRANSPORT_F_END 34 +#define VIRTIO_TRANSPORT_F_END 38 #ifndef VIRTIO_CONFIG_NO_LEGACY /* Do we get callbacks when the ring is completely used, even if we've @@ -71,4 +71,9 @@ * this is for compatibility with legacy systems. */ #define VIRTIO_F_IOMMU_PLATFORM 33 + +/* + * Does the device support Single Root I/O Virtualization? + */ +#define VIRTIO_F_SR_IOV 37 #endif /* _UAPI_LINUX_VIRTIO_CONFIG_H */ |