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.
This commit is contained in:
Ryan Stone
2015-03-01 00:40:09 +00:00
parent e1de57232c
commit 9bfb1e36d9
13 changed files with 643 additions and 0 deletions
+1
View File
@@ -97,6 +97,7 @@ device cpufreq
device acpi
options ACPI_DMAR
device pci
options PCI_IOV # PCI SR-IOV support
# Floppy drives
device fdc