Date: Sat, 27 Oct 2012 02:39:08 +0000 (UTC) From: Neel Natu <neel@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r242170 - projects/bhyve/usr.sbin/bhyve Message-ID: <201210270239.q9R2d8Kv064997@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201210270239.q9R2d8Kv064997>