dexuan d17e215710 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
..
2016-04-27 19:38:24 +00:00
2015-08-22 07:32:47 +00:00
2016-10-30 22:18:22 +00:00
2016-05-10 02:35:13 +00:00
2016-07-22 06:21:03 +00:00
2016-11-03 13:06:17 +00:00
2015-06-17 18:50:57 +00:00
2016-10-02 03:20:31 +00:00
2016-11-07 21:15:39 +00:00
2015-06-06 12:44:42 +00:00
2015-06-06 12:44:42 +00:00
2015-06-14 03:14:45 +00:00
2016-05-03 22:01:48 +00:00
2016-02-11 16:16:10 +00:00
2016-08-07 18:12:36 +00:00
2016-08-07 18:12:36 +00:00
2016-02-11 16:16:10 +00:00
2016-01-09 16:08:22 +00:00
2016-01-09 16:08:22 +00:00
2016-07-17 15:23:32 +00:00
2016-07-27 20:45:00 +00:00
2016-07-17 15:23:32 +00:00
2015-06-05 20:38:22 +00:00
2015-10-01 05:56:38 +00:00
2016-01-09 18:02:08 +00:00
2015-06-30 20:59:07 +00:00
2015-12-27 17:12:54 +00:00
2016-05-07 08:30:21 +00:00
2016-05-07 08:30:21 +00:00
2016-10-02 03:20:31 +00:00
2016-09-21 18:52:03 +00:00
2015-06-27 22:48:22 +00:00
2016-05-20 11:00:06 +00:00
2015-02-07 23:09:03 +00:00
2016-09-02 04:23:26 +00:00
2015-04-22 18:15:18 +00:00
2015-12-04 18:44:12 +00:00