]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Update qemuDomainSupportsPCI()
authorAndrea Bolognani <abologna@redhat.com>
Thu, 10 Jul 2025 14:42:32 +0000 (16:42 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Mon, 6 Oct 2025 09:15:47 +0000 (11:15 +0200)
commit956253d1cda411bdc0539b59b3a777843a1292e5
tree316d2e0a17cf50c47d89b29b995aec972657c07b
parent2ad21cd97f52c4aa81c7a9e0956719d1d4039804
qemu: Update qemuDomainSupportsPCI()

The sparc architecture doesn't support PCI, and neither do the
isapc and microvm machine types on x86 architectures.

One of the isapc/microvm tests starts failing as a consequence
of this change, which is expected; somewhat surprisingly,
another test for the same machine types goes from an early/hard
failure (PARSE_ERROR) to a late/soft one (FAILURE) instead.
This will be rectified by a later commit.

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>
src/qemu/qemu_domain.c
tests/qemuxmlconfdata/isapc-pci.x86_64-latest.args [deleted file]
tests/qemuxmlconfdata/isapc-pci.x86_64-latest.err [new file with mode: 0644]
tests/qemuxmlconfdata/microvm-pci.x86_64-latest.args [deleted file]
tests/qemuxmlconfdata/microvm-pci.x86_64-latest.err [new file with mode: 0644]
tests/qemuxmlconfdata/usb-controller-default-isapc.x86_64-latest.xml [moved from tests/qemuxmlconfdata/isapc-pci.x86_64-latest.xml with 86% similarity]
tests/qemuxmlconfdata/usb-controller-default-microvm.x86_64-latest.xml [moved from tests/qemuxmlconfdata/microvm-pci.x86_64-latest.xml with 84% similarity]
tests/qemuxmlconftest.c