freebsd-skq/sys/dev/pci
Ryan Stone 5060ec97d4 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
..
eisa_pci.c
fixup_pci.c Use device_printf(). 2013-08-11 06:57:57 +00:00
hostb_pci.c
ignore_pci.c
isa_pci.c
pci_if.m Implement interface to create SR-IOV Virtual Functions 2015-03-01 00:40:09 +00:00
pci_iov_private.h Implement interface to create SR-IOV Virtual Functions 2015-03-01 00:40:09 +00:00
pci_iov.c Implement interface to create SR-IOV Virtual Functions 2015-03-01 00:40:09 +00:00
pci_pci.c Add some pcib methods to get ARI-related information 2015-03-01 00:39:40 +00:00
pci_private.h Implement interface to create SR-IOV Virtual Functions 2015-03-01 00:40:09 +00:00
pci_subr.c Add support for managing PCI bus numbers. As with BARs and PCI-PCI bridge 2014-02-12 04:30:37 +00:00
pci_user.c Emulate the Device ID and Vendor ID registers for VFs 2015-03-01 00:40:19 +00:00
pci.c Emulate the Device ID and Vendor ID registers for VFs 2015-03-01 00:40:19 +00:00
pcib_if.m Add some pcib methods to get ARI-related information 2015-03-01 00:39:40 +00:00
pcib_private.h Add some pcib methods to get ARI-related information 2015-03-01 00:39:40 +00:00
pcib_support.c Add some pcib methods to get ARI-related information 2015-03-01 00:39:40 +00:00
pcireg.h Implement interface to create SR-IOV Virtual Functions 2015-03-01 00:40:09 +00:00
pcivar.h Implement interface to create SR-IOV Virtual Functions 2015-03-01 00:40:09 +00:00
vga_pci.c Remove ia64. 2014-07-07 00:27:09 +00:00