Message ID | 160147877482.24881.11249970993995586313.malone@chaenomeles.canonical.com |
---|---|
State | New |
Headers | show |
Series | [Bug,1897481] Re: qemu crashes with VGA pass-through, e-GPU, nvidia 1060 | expand |
diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c index 0d83eb0e47bb..10477af9fc14 100644 --- a/hw/vfio/pci.c +++ b/hw/vfio/pci.c @@ -2921,7 +2921,9 @@ static void vfio_realize(PCIDevice *pdev, Error **errp) } for (i = 0; i < PCI_ROM_SLOT; i++) { - vfio_bar_quirk_setup(vdev, i); + if (vdev->bars[i].size) { + vfio_bar_quirk_setup(vdev, i); + } } if (!vdev->igd_opregion &&