]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Validate presence of PCI support
authorAndrea Bolognani <abologna@redhat.com>
Fri, 11 Jul 2025 13:38:37 +0000 (15:38 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Mon, 6 Oct 2025 09:15:44 +0000 (11:15 +0200)
commit2ad21cd97f52c4aa81c7a9e0956719d1d4039804
tree58c66ea599f3082a121e3a390ba5d7a624631066
parentfa4655495786ff102175ab23c730ac21365a5ff6
qemu: Validate presence of PCI support

The qemuValidateDomainDeviceDefControllerPCI() function is
called if PCI controllers are present in the domain
configuration, which shouldn't happen if the machine type
doesn't support PCI. If we somehow find ourselves in that
scenario, reporting an error would be the right thing to do.

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_validate.c