The HBA does DMA, thus we must enable the busmaster bit, otherwise dma access will fail with recent qemu versions.
Signed-off-by: Gerd Hoffmann kraxel@redhat.com --- src/lsi-scsi.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/lsi-scsi.c b/src/lsi-scsi.c index b70b3a5..f8d715b 100644 --- a/src/lsi-scsi.c +++ b/src/lsi-scsi.c @@ -177,6 +177,8 @@ init_lsi_scsi(struct pci_device *pci) u32 iobase = pci_config_readl(pci->bdf, PCI_BASE_ADDRESS_0) & PCI_BASE_ADDRESS_IO_MASK;
+ pci_config_maskw(bdf, PCI_COMMAND, 0, PCI_COMMAND_MASTER); + dprintf(1, "found lsi53c895a at %02x:%02x.%x, io @ %x\n", pci_bdf_to_bus(bdf), pci_bdf_to_dev(bdf), pci_bdf_to_fn(bdf), iobase);