]> xenbits.xensource.com Git - libvirt.git/commit
Auto-add one hub if there are too many USB devices
authorJán Tomko <jtomko@redhat.com>
Fri, 17 Jun 2016 07:49:54 +0000 (09:49 +0200)
committerJán Tomko <jtomko@redhat.com>
Thu, 21 Jul 2016 06:30:26 +0000 (08:30 +0200)
commit815d98ac0bb8a4b48a412e026cb6465309e4043c
tree443e2baa7c078840a2537ffd94aa6cc7e70c9876
parentf2a781ceb075073a6033b96649f41501148d3c0c
Auto-add one hub if there are too many USB devices

When parsing a command line with USB devices that have
no address specified, QEMU automatically adds a USB hub
if the device would fill up all the available USB ports.

To help most of the users, add one hub if there are more
USB devices than available ports. For wilder configurations,
expect the user to provide us with more hubs and/or controllers.
src/conf/domain_addr.c
src/conf/domain_addr.h
src/libvirt_private.syms
src/qemu/qemu_domain_address.c
tests/qemuxml2argvdata/qemuxml2argv-usb-hub-autoadd.args [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-usb-hub-autoadd.xml [new file with mode: 0644]
tests/qemuxml2argvtest.c