svn commit: r242170 - projects/bhyve/usr.sbin/bhyve

Neel Natu neel at FreeBSD.org
Sat Oct 27 02:39:09 UTC 2012


Author: neel
Date: Sat Oct 27 02:39:08 2012
New Revision: 242170
URL: http://svn.freebsd.org/changeset/base/242170

Log:
  Ignore PCI configuration accesses to all bus numbers other than PCI bus 0.
  
  Obtained from:	NetApp

Modified:
  projects/bhyve/usr.sbin/bhyve/pci_emul.c

Modified: projects/bhyve/usr.sbin/bhyve/pci_emul.c
==============================================================================
--- projects/bhyve/usr.sbin/bhyve/pci_emul.c	Sat Oct 27 02:10:45 2012	(r242169)
+++ projects/bhyve/usr.sbin/bhyve/pci_emul.c	Sat Oct 27 02:39:08 2012	(r242170)
@@ -821,7 +821,11 @@ pci_emul_cfgdata(struct vmctx *ctx, int 
 
 	assert(bytes == 1 || bytes == 2 || bytes == 4);
 	
-	pi = pci_slotinfo[cfgslot][cfgfunc].si_devi;
+	if (cfgbus == 0)
+		pi = pci_slotinfo[cfgslot][cfgfunc].si_devi;
+	else
+		pi = NULL;
+
 	coff = cfgoff + (port - CONF1_DATA_PORT);
 
 #if 0


More information about the svn-src-projects mailing list