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

Reply via email to