3 Oct
2025
3 Oct
'25
7:01 a.m.
On Thu, Sep 25, 2025 at 20:07:11 +0200, Andrea Bolognani via Devel wrote:
Attempting to use a USB controller that's a PCI device with a machine type that doesn't support PCI should result in an error.
Note that, while all USB controllers supported by the libvirt QEMU driver today are PCI devices, QEMU itself implements machine types that come with non-PCI USB controllers. Having a separate helper with a switch/case statement ensures that things will need to be updated accordingly if libvirt will ever grow support for those USB controllers.
Signed-off-by: Andrea Bolognani <abologna@redhat.com> --- src/qemu/qemu_command.c | 44 ++++++++++++++++++++++++++++++++++++++++-
Reviewed-by: Peter Krempa <pkrempa@redhat.com>