[PATCH 0/4] qemu: Automatically add USB controller if USB devices are present

Andrea Bolognani via Devel posted 4 patches 2 weeks, 6 days ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/20260112144916.127295-1-abologna@redhat.com
src/conf/domain_conf.c                        | 31 +++++++++++++-
src/conf/domain_conf.h                        |  3 +-
src/conf/domain_validate.c                    |  2 +-
src/libvirt_private.syms                      |  3 +-
src/qemu/qemu_domain_address.c                |  2 +-
src/qemu/qemu_postparse.c                     | 11 +++++
...h-devices-virt-aarch64.aarch64-latest.args | 36 ++++++++++++++++
...th-devices-virt-aarch64.aarch64-latest.xml | 41 +++++++++++++++++++
...er-automatic-with-devices-virt-aarch64.xml | 14 +++++++
tests/qemuxmlconftest.c                       |  2 +
10 files changed, 139 insertions(+), 6 deletions(-)
create mode 100644 tests/qemuxmlconfdata/usb-controller-automatic-with-devices-virt-aarch64.aarch64-latest.args
create mode 100644 tests/qemuxmlconfdata/usb-controller-automatic-with-devices-virt-aarch64.aarch64-latest.xml
create mode 100644 tests/qemuxmlconfdata/usb-controller-automatic-with-devices-virt-aarch64.xml
[PATCH 0/4] qemu: Automatically add USB controller if USB devices are present
Posted by Andrea Bolognani via Devel 2 weeks, 6 days ago
Makes things more user-friendly for those machine types where a
default USB controller is normally not automatically added.

https://issues.redhat.com/browse/RHEL-2455

Andrea Bolognani (4):
  tests: Add usb-controller-automatic-with-devices-virt-aarch64
  conf: Rename virDomainDefHasUSB() to virDomainDefHasUSBControllers()
  conf: Introduce virDomainDefHasUSBDevices()
  qemu: Automatically add USB controller if USB devices are present

 src/conf/domain_conf.c                        | 31 +++++++++++++-
 src/conf/domain_conf.h                        |  3 +-
 src/conf/domain_validate.c                    |  2 +-
 src/libvirt_private.syms                      |  3 +-
 src/qemu/qemu_domain_address.c                |  2 +-
 src/qemu/qemu_postparse.c                     | 11 +++++
 ...h-devices-virt-aarch64.aarch64-latest.args | 36 ++++++++++++++++
 ...th-devices-virt-aarch64.aarch64-latest.xml | 41 +++++++++++++++++++
 ...er-automatic-with-devices-virt-aarch64.xml | 14 +++++++
 tests/qemuxmlconftest.c                       |  2 +
 10 files changed, 139 insertions(+), 6 deletions(-)
 create mode 100644 tests/qemuxmlconfdata/usb-controller-automatic-with-devices-virt-aarch64.aarch64-latest.args
 create mode 100644 tests/qemuxmlconfdata/usb-controller-automatic-with-devices-virt-aarch64.aarch64-latest.xml
 create mode 100644 tests/qemuxmlconfdata/usb-controller-automatic-with-devices-virt-aarch64.xml

-- 
2.52.0