OSDN Git Service

virtio_pci: support enabling VFs
authorTiwei Bie <tiwei.bie@intel.com>
Fri, 1 Jun 2018 04:02:39 +0000 (12:02 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 12 Jun 2018 01:59:29 +0000 (04:59 +0300)
commitcfecc2918d2b3c5e86ff1a6c95eabbbb17bb8fd3
treee1d6119d7345b602e538f1eb6be11ad432e4ee3c
parent670ae9caaca467ea1bfd325cb2a5c98ba87f94ad
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>
drivers/virtio/virtio_pci_common.c
drivers/virtio/virtio_pci_modern.c
include/uapi/linux/virtio_config.h