rstone 89058c6ddf Emulate the Device ID and Vendor ID registers for VFs
The SR-IOV standard requires VFs to read all-ones when the VID
and DID registers are read.  The VMM (hypervisor) is required to
emulate them instead.  Make pci_read_config() do this emulation.

Change pci_user.c to use pci_read_config() to read config space
registers instead of going directly to the pcib so that the
emulated VID/DID registers work correctly on VFs.  This is
required both for pciconf and bhyve PCI passthrough.

Differential Revision:	https://reviews.freebsd.org/D77
Reviewed by:		jhb
MFC after: 		1 month
Sponsored by:		Sandvine Inc.
2015-03-01 00:40:19 +00:00
..
2015-01-23 15:14:30 +00:00
2015-01-30 01:13:07 +00:00
2015-02-24 01:00:46 +00:00
2015-01-23 15:14:30 +00:00
2015-01-23 15:14:30 +00:00
2015-02-04 16:19:31 +00:00
2015-01-21 09:01:48 +00:00
2015-02-27 15:14:25 +00:00
2015-02-24 06:20:50 +00:00
2014-12-03 00:47:05 +00:00
2014-11-18 21:58:57 +00:00
2014-11-21 21:34:19 +00:00
2014-11-20 20:09:18 +00:00
2015-02-28 15:21:06 +00:00