Ignore PCI configuration accesses to all bus numbers other than PCI bus 0.
Obtained from: NetApp
This commit is contained in:
parent
bd8cef91ea
commit
90415e0b4e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/projects/bhyve/; revision=242170
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user