]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Fix PCI/USB handling for Arm realview boards
authorAndrea Bolognani <abologna@redhat.com>
Tue, 8 Jul 2025 20:27:02 +0000 (22:27 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Mon, 6 Oct 2025 09:15:31 +0000 (11:15 +0200)
commitb38fb62e2e2997fa2f7aa0a5266a054189c51adf
treec459bb597336d29795410093868a29401f6e5124
parent30e3efad52ddb11d6f8c76aba582e200e50d3e9d
qemu: Fix PCI/USB handling for Arm realview boards

Only the -eb variants of the realview board support PCI
devices, so those are the only ones that should automatically
get a USB controller (addDefaultUSB). libvirt will currently
add one for the other realview variants too, but that will
result in QEMU reporting an error due to lack of PCI support
as soon as the domain is started.

Additionally, they should get a PCI controller added
automatically (addPCIRoot) too, same as versatilepb.

Finally, qemuDomainSupportsPCI() should correctly report the
fact that these machine types support PCI.

As a consequence of these fixes, the USB controllers now
correctly get assigned PCI addresses across the board.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
14 files changed:
src/qemu/qemu_domain.c
src/qemu/qemu_postparse.c
tests/qemuxmlconfdata/aarch64-realview-minimal.aarch64-latest.abi-update.args
tests/qemuxmlconfdata/aarch64-realview-minimal.aarch64-latest.abi-update.xml
tests/qemuxmlconfdata/aarch64-realview-minimal.aarch64-latest.args
tests/qemuxmlconfdata/aarch64-realview-minimal.aarch64-latest.xml
tests/qemuxmlconfdata/usb-controller-automatic-realview.aarch64-latest.args
tests/qemuxmlconfdata/usb-controller-automatic-realview.aarch64-latest.xml
tests/qemuxmlconfdata/usb-controller-automatic-unavailable-realview.aarch64-latest.xml
tests/qemuxmlconfdata/usb-controller-default-fallback-realview.aarch64-latest.args
tests/qemuxmlconfdata/usb-controller-default-fallback-realview.aarch64-latest.xml
tests/qemuxmlconfdata/usb-controller-default-realview.aarch64-latest.args
tests/qemuxmlconfdata/usb-controller-default-realview.aarch64-latest.xml
tests/qemuxmlconfdata/usb-controller-default-unavailable-realview.aarch64-latest.xml