]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Check for pci-ohci availability
authorAndrea Bolognani <abologna@redhat.com>
Wed, 6 Aug 2025 14:34:58 +0000 (16:34 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Mon, 6 Oct 2025 09:15:26 +0000 (11:15 +0200)
commita416ccfb98d781c467bcc3aedf799be5ec9f65ab
tree554a99822896d218c0e0637ab7c6846c564c0b03
parent4005d83a9acbd536eae487fb18ac290a3ed6fd7a
qemu: Check for pci-ohci availability

We assign the USB controller model without first checking
whether the corresponding QEMU device is available, and that
results in a late error instead of an early one.

Be consistent with how we do things in all other cases and
check the presence of the capability before attempting to set
the model.

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_postparse.c
tests/qemuxmlconfdata/usb-controller-automatic-unavailable-realview.aarch64-latest.err
tests/qemuxmlconfdata/usb-controller-automatic-unavailable-realview.aarch64-latest.xml
tests/qemuxmlconfdata/usb-controller-automatic-unavailable-versatilepb.armv7l-latest.err
tests/qemuxmlconfdata/usb-controller-automatic-unavailable-versatilepb.armv7l-latest.xml