freebsd-dev/sys/dev/hyperv
Dexuan Cui 871c968b3a hyperv/pcib: enable PCIe pass-through (a.k.a. Discrete Device Assignment)
The feature enables us to pass through physical PCIe devices to FreeBSD VM
running on Hyper-V (Windows Server 2016) to get near-native performance with
low CPU utilization.

The patch implements a PCI bridge driver to support the feature:

1) The pcib driver talks to the host to discover device(s) and presents
the device(s) to FreeBSD's pci driver via PCI configuration space (note:
to access the configuration space, we don't use the standard I/O port
0xCF8/CFC method; instead, we use an MMIO-based method supplied by Hyper-V,
which is very similar to the 0xCF8/CFC method).

2) The pcib driver allocates resources for the device(s) and initialize
the related BARs, when the device driver's attach method is invoked;

3) The pcib driver talks to the host to create MSI/MSI-X interrupt
remapping between the guest and the host;

4) The pcib driver supports device hot add/remove.

Reviewed by:	sephe
Approved by:	sephe (mentor)
MFC after:	1 week
Sponsored by:	Microsoft
Differential Revision:	https://reviews.freebsd.org/D8332
2016-11-16 09:25:00 +00:00
..
include hyperv: GC unused functions. 2016-11-02 05:41:23 +00:00
netvsc hyperv/hn: Directly fill chimney sending buffer for small packets. 2016-11-01 08:20:33 +00:00
pcib hyperv/pcib: enable PCIe pass-through (a.k.a. Discrete Device Assignment) 2016-11-16 09:25:00 +00:00
storvsc hyperv/stor: Fix off-by-one bug; this brings back TRIM support. 2016-10-14 05:32:47 +00:00
utilities hyperv/vss: Add driver and tools for VSS 2016-11-15 02:36:12 +00:00
vmbus hyperv/vmbus: add new vmbus methods to support PCIe pass-through 2016-11-16 09:08:32 +00:00