]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: assign USB port on a selected hub for all devices
authorJán Tomko <jtomko@redhat.com>
Fri, 27 Jan 2017 17:08:22 +0000 (18:08 +0100)
committerJán Tomko <jtomko@redhat.com>
Mon, 13 Feb 2017 08:46:15 +0000 (09:46 +0100)
commit384504f7ba5f5c885a642e94b123483a5534e873
treecd3be0aaa52f3aac89ffc41633bc1adf9d66bbf7
parentd6bc7622f07b09ad569d2e9475e668981df06bed
qemu: assign USB port on a selected hub for all devices

Due to a logic error, the autofilling of USB port when a bus is
specified:
    <address type='usb' bus='0'/>
does not work for non-hub devices on domain startup.

Fix the logic in qemuDomainAssignUSBPortsIterator to also
assign ports for USB addresses that do not yet have one.

https://bugzilla.redhat.com/show_bug.cgi?id=1374128
src/qemu/qemu_domain_address.c
tests/qemuxml2argvdata/qemuxml2argv-usb-port-missing.args