]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Require PCIe Root Port for PCI by default on ARM virt
authorAndrea Bolognani <abologna@redhat.com>
Thu, 21 Mar 2019 15:50:18 +0000 (16:50 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Thu, 4 Apr 2019 07:52:14 +0000 (09:52 +0200)
commit20011d01d92bff40071dadd9a6d53701c853818e
tree7c76485694ef123d131c89cf083c85e5722908c6
parent29f2b5248c6d19d9df91b49358c2877a0627d708
qemu: Require PCIe Root Port for PCI by default on ARM virt

Our PCIe topology depends on the availability of PCIe Root Ports,
so if none of the suitable devices (pcie-root-port, ioh3420) is
compiled into QEMU we should fall back to virtio-mmio rather than
trying to use PCI addresses only to fail immediately afterwards
when we realize we can't use the necessary controllers.

Note that this additional check is basically moot for ARM virt
guests, because PCIe Root Ports were enabled in QEMU builds for
the architecture well before guest OS support had been widely
available; however, the opposite is true for RISC-V, and tweaking
the code this way will allow us to share it between architectures.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Cole Robinson <crobinso@redhat.com>
src/qemu/qemu_domain_address.c