freebsd-dev/sys
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
..
amd64 Implement interface to create SR-IOV Virtual Functions 2015-03-01 00:40:09 +00:00
arm Remove SMP support from the Wandboard-Solo and have it run as part of 2015-02-27 12:40:44 +00:00
boot sys/boot/userboot/libstand/libstand.a should also include strtoul.c; 2015-02-27 22:23:35 +00:00
bsm
cam Fix I/O size calculation for pass(4) driver requests and add latency 2015-02-27 21:35:36 +00:00
cddl Allow Illumos code to co-exist with nv(9) 2015-03-01 00:22:45 +00:00
compat Run make sysent. 2015-01-23 21:08:24 +00:00
conf Implement interface to create SR-IOV Virtual Functions 2015-03-01 00:40:09 +00:00
contrib Merge ACPICA 20141107 and 20150204. 2015-02-18 20:33:00 +00:00
crypto Add some new modes to OpenCrypto. These modes are AES-ICM (can be used 2014-12-12 19:56:36 +00:00
ddb
dev Emulate the Device ID and Vendor ID registers for VFs 2015-03-01 00:40:19 +00:00
fs Do not leak 'copy' buffer if bmap_truncate_indirect fails. 2015-02-28 22:24:45 +00:00
gdb
geom Replace constant with proper sizeof(). 2015-02-25 10:18:11 +00:00
gnu Merge latest (commit c8c1b3a77934768c7f7a4a9c10140c8bec529059) files 2015-02-28 00:06:04 +00:00
i386 Implement interface to create SR-IOV Virtual Functions 2015-03-01 00:40:09 +00:00
isa
kern Move libnv into the kernel and hook it into the kernel build 2015-03-01 00:34:27 +00:00
kgssapi Avoid dynamic syscall overhead for statically compiled modules. 2014-10-26 19:42:44 +00:00
libkern Implement asprintf in libkern 2015-03-01 00:22:16 +00:00
mips Whitespace fixes for sys/mips/nlm/dev 2015-02-28 00:22:10 +00:00
modules sfxge: compile out LRO if kernel is compiled without IPv4 and IPv6 2015-02-28 19:01:43 +00:00
net Hide struct ifmultiaddr under _KERNEL, too. 2015-02-27 01:15:23 +00:00
net80211 Fix kern/196290 - don't announce 11n HTINFO rates if the channel is 2015-02-27 04:45:47 +00:00
netgraph Revise default limit for maximum of netgraph data items. 2015-02-12 22:20:34 +00:00
netinet Fix a special case in ip_fragment() to produce a more sensible chain 2015-02-25 13:58:43 +00:00
netinet6 Now that all users of _WANT_IFADDR are fixed, remove this crutch and 2015-02-19 23:16:10 +00:00
netipsec Fix possible memory leak and several races in the IPsec policy management 2015-02-24 10:35:07 +00:00
netnatm
netpfil Even more fixes to !INET and !INET6 kernels. 2015-02-17 22:33:22 +00:00
netsmb
nfs Avoid closing unallocated socket in case socreate fails. 2015-02-28 20:30:29 +00:00
nfsclient Remove the old NFS client and server from head, 2014-12-23 00:47:46 +00:00
nfsserver Use M_SIZE() instead of hand-crafted (and mostly correct) NFSMSIZ() macro 2015-01-07 17:22:56 +00:00
nlm Avoid dynamic syscall overhead for statically compiled modules. 2014-10-26 19:42:44 +00:00
ofed Macro fixes: 2015-02-23 12:54:46 +00:00
opencrypto Add some new modes to OpenCrypto. These modes are AES-ICM (can be used 2014-12-12 19:56:36 +00:00
pc98 Factor out duplicated code from dumpsys() on each architecture into generic 2015-01-07 01:01:39 +00:00
powerpc Fix unitialized variable. 2015-02-27 20:32:09 +00:00
rpc rpc: Uninitialized pointer read 2015-02-02 16:07:07 +00:00
security Adjust printf format specifiers for dev_t and ino_t in kernel. 2014-12-17 07:27:19 +00:00
sparc64 Unbreak sparc64 after r276630 by calling __sparc_sigtramp_setup signal 2015-02-16 22:13:03 +00:00
sys Implement interface to create SR-IOV Virtual Functions 2015-03-01 00:40:09 +00:00
teken mdoc: improvements to SEE ALSO. 2014-12-27 07:07:37 +00:00
tools
ufs Partially revert r277922, avoid sleeping and do flush if we a awaken, 2015-02-05 13:00:27 +00:00
vm Eliminate a variable that became unused when VFS_LOCK_GIANT() was 2015-02-28 19:11:37 +00:00
x86 Since all generations of Intel CPUs have errata which causes hang on 2015-02-27 11:13:46 +00:00
xdr
xen Pacify clang 3.3 by ending the file with a newline. This is common 2015-01-06 21:26:35 +00:00
Makefile