]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Build usb controller command line more wisely
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 16 Mar 2018 14:53:32 +0000 (15:53 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 16 Mar 2018 15:37:14 +0000 (16:37 +0100)
commitb133fac356324c3c7992a9cb07c1b5d9eea1e2eb
tree4b0fd549a2faef34affd129196ad481900136ff6
parentc8935705f1bf1ae9f8e4db3365f217d23e351237
qemu: Build usb controller command line more wisely

https://bugzilla.redhat.com/show_bug.cgi?id=1552127

When building command line for USB controllers we have to do more
than just put controller's alias onto the command line. QEMU has
concept of these joined USB controllers. For instance ehci and
uhci controllers need to create the same USB bus. To achieve that
the slave controller needs to refer the master controller. This
worked until we've introduced user aliases because both master
and slave had the same alias. With user aliases slave can have
different alias than master. Therefore, when generating command
line for slave we need to look up the master's alias.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_command.c
tests/qemuxml2argvdata/user-aliases-usb.args [new file with mode: 0644]
tests/qemuxml2argvdata/user-aliases-usb.xml [new file with mode: 0644]
tests/qemuxml2argvtest.c