From 90415e0b4ea15d5aec396ee50f0036d00e4d4d09 Mon Sep 17 00:00:00 2001 From: Neel Natu Date: Sat, 27 Oct 2012 02:39:08 +0000 Subject: [PATCH] Ignore PCI configuration accesses to all bus numbers other than PCI bus 0. Obtained from: NetApp --- usr.sbin/bhyve/pci_emul.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/usr.sbin/bhyve/pci_emul.c b/usr.sbin/bhyve/pci_emul.c index f9d75e309182..1836bc9b3810 100644 --- a/usr.sbin/bhyve/pci_emul.c +++ b/usr.sbin/bhyve/pci_emul.c @@ -821,7 +821,11 @@ pci_emul_cfgdata(struct vmctx *ctx, int vcpu, int in, int port, int bytes, 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