]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Implement interface to create SR-IOV Virtual Functions
authorRyan Stone <rstone@FreeBSD.org>
Sun, 1 Mar 2015 00:40:09 +0000 (00:40 +0000)
committerRyan Stone <rstone@FreeBSD.org>
Sun, 1 Mar 2015 00:40:09 +0000 (00:40 +0000)
commit9bfb1e36d92d1650e4a121ad751dc2ffbfb4cecb
treee3db7ad511be3d1432492d4ecf89ccb0158d8d85
parente1de57232c1d86ae51544e403cd4914256bfa084
Implement interface to create SR-IOV Virtual Functions

Implement the interace to create SR-IOV Virtual Functions (VFs).
When a driver registers that they support SR-IOV by calling
pci_setup_iov(), the SR-IOV code creates a new node in /dev/iov
for that device.  An ioctl can be invoked on that device to
create VFs and have the driver initialize them.

At this point, allocating memory I/O windows (BARs) is not
supported.

Differential Revision: https://reviews.freebsd.org/D76
Reviewed by: jhb
MFC after:  1 month
Sponsored by: Sandvine Inc.
13 files changed:
sys/amd64/conf/GENERIC
sys/conf/files
sys/conf/options
sys/dev/acpica/acpi_pci.c
sys/dev/pci/pci.c
sys/dev/pci/pci_if.m
sys/dev/pci/pci_iov.c [new file with mode: 0644]
sys/dev/pci/pci_iov_private.h [new file with mode: 0644]
sys/dev/pci/pci_private.h
sys/dev/pci/pcireg.h
sys/dev/pci/pcivar.h
sys/i386/conf/GENERIC
sys/sys/iov.h [new file with mode: 0644]