Merge pull request #5 from shuox/fix_PCIR_BIOS_handling

Ignore length of resource for PCI ROM request
This commit is contained in:
Anthony Xu 2018-03-13 15:00:15 -07:00 committed by GitHub
commit e24050ae8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1905,6 +1905,8 @@ pci_cfgrw(struct vmctx *ctx, int vcpu, int in, int bus, int slot, int func,
}
pci_set_cfgdata32(dev, coff, bar);
} else if (coff == PCIR_BIOS) {
/* ignore ROM BAR length request */
} else if (pci_emul_iscap(dev, coff)) {
pci_emul_capwrite(dev, coff, bytes, *eax);
} else if (coff >= PCIR_COMMAND && coff < PCIR_REVID) {