Technically a v2, but it's been too long:
https://www.redhat.com/archives/libvir-list/2015-August/msg00521.html
With apologies to anyone who had read v1.
https://bugzilla.redhat.com/show_bug.cgi?id=1215968
Ján Tomko (17):
Format CCID controllers after USB hubs
Fix USB port in input-usbmouse test
Add a USB hub to controller order test
Add a test for long USB port paths
Split out USB port parsing
Use for instead of code duplication when parsing USB port
Store USB port path as an array of integers
Do not call postParse with ABI_UPDATE when parsing cmdline
Add newDomain parameter to qemuDomainAssignAddresses
Introduce virDomainUSBAddressSet
Add functions for adding USB controllers to addrs
Add functions for adding USB hubs to addrs
Reserve existing USB addresses
Assign addresses to USB devices
Auto-add one hub if there are too many USB devices
Add USB disk to hotplug-base
Assign addresses on USB device hotplug
src/conf/device_conf.h | 5 +-
src/conf/domain_addr.c | 481 +++++++++++++++++++++
src/conf/domain_addr.h | 55 +++
src/conf/domain_conf.c | 125 +++++-
src/conf/domain_conf.h | 6 +
src/libvirt_private.syms | 11 +
src/qemu/qemu_command.c | 33 +-
src/qemu/qemu_domain.c | 3 +-
src/qemu/qemu_domain.h | 1 +
src/qemu/qemu_domain_address.c | 126 +++++-
src/qemu/qemu_domain_address.h | 3 +-
src/qemu/qemu_hotplug.c | 27 ++
src/qemu/qemu_parse_command.c | 3 +-
src/qemu/qemu_process.c | 7 +-
tests/qemuhotplugtest.c | 2 +-
...otplug-console-compat-2-live+console-virtio.xml | 1 +
.../qemuhotplug-hotplug-base-live+disk-usb.xml | 1 +
.../qemuxml2argvdata/qemuxml2argv-bios-nvram.args | 2 +-
tests/qemuxml2argvdata/qemuxml2argv-bios.args | 2 +-
.../qemuxml2argv-console-compat-2-live.xml | 1 +
.../qemuxml2argv-console-compat-2.xml | 4 +-
.../qemuxml2argv-controller-order.args | 7 +-
.../qemuxml2argv-controller-order.xml | 1 +
.../qemuxml2argv-disk-usb-device-removable.args | 3 +-
.../qemuxml2argv-disk-usb-device.args | 2 +-
.../qemuxml2argv-graphics-spice-timeout.args | 2 +-
...muxml2argv-hostdev-usb-address-device-boot.args | 2 +-
.../qemuxml2argv-hostdev-usb-address-device.args | 2 +-
.../qemuxml2argv-hostdev-usb-address.args | 2 +-
.../qemuxml2argv-hotplug-base.args | 5 +-
.../qemuxml2argvdata/qemuxml2argv-hotplug-base.xml | 8 +
.../qemuxml2argv-hugepages-numa.args | 2 +-
.../qemuxml2argv-input-usbmouse-addr.args | 2 +-
.../qemuxml2argv-input-usbmouse-addr.xml | 2 +-
.../qemuxml2argv-input-usbmouse.args | 2 +-
.../qemuxml2argv-input-usbtablet.args | 2 +-
.../qemuxml2argv-pseries-usb-kbd.args | 2 +-
.../qemuxml2argv-serial-spiceport.args | 2 +-
.../qemuxml2argv-smartcard-controller.args | 2 +-
.../qemuxml2argv-smartcard-host-certificates.args | 2 +-
.../qemuxml2argv-smartcard-host.args | 2 +-
...emuxml2argv-smartcard-passthrough-spicevmc.args | 2 +-
.../qemuxml2argv-smartcard-passthrough-tcp.args | 2 +-
.../qemuxml2argv-sound-device.args | 2 +-
.../qemuxml2argv-usb-hub-autoadd.args | 28 ++
.../qemuxml2argv-usb-hub-autoadd.xml | 23 +
.../qemuxml2argv-usb-hub-conflict.xml | 22 +
.../qemuxml2argv-usb-long-port-path.args | 27 ++
.../qemuxml2argv-usb-long-port-path.xml | 30 ++
.../qemuxml2argv-usb-port-autoassign.args | 28 ++
.../qemuxml2argv-usb-port-autoassign.xml | 27 ++
...qemuxml2argv-usb-too-long-port-path-invalid.xml | 33 ++
tests/qemuxml2argvtest.c | 20 +-
53 files changed, 1139 insertions(+), 58 deletions(-)
create mode 100644 tests/qemuxml2argvdata/qemuxml2argv-usb-hub-autoadd.args
create mode 100644 tests/qemuxml2argvdata/qemuxml2argv-usb-hub-autoadd.xml
create mode 100644 tests/qemuxml2argvdata/qemuxml2argv-usb-hub-conflict.xml
create mode 100644 tests/qemuxml2argvdata/qemuxml2argv-usb-long-port-path.args
create mode 100644 tests/qemuxml2argvdata/qemuxml2argv-usb-long-port-path.xml
create mode 100644 tests/qemuxml2argvdata/qemuxml2argv-usb-port-autoassign.args
create mode 100644 tests/qemuxml2argvdata/qemuxml2argv-usb-port-autoassign.xml
create mode 100644
tests/qemuxml2argvdata/qemuxml2argv-usb-too-long-port-path-invalid.xml
--
2.7.3