]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Don't append 0 at usb id, so that it is compatible with legacy -usb
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Fri, 2 Sep 2011 14:49:42 +0000 (22:49 +0800)
committerDaniel Veillard <veillard@redhat.com>
Fri, 2 Sep 2011 15:39:03 +0000 (23:39 +0800)
commitfdd14a9d056a363373baf224056612fbf7467b20
treeb6d909ff265b60330203c5861b84433294b8c3ea
parentf35bbf7be72702f14f9a81f147322f95cbef4003
qemu: Don't append 0 at usb id, so that it is compatible with legacy -usb

QEMU uses USB bus name "usb.0" when using the legacy -usb argument.
If we want to allow USB devices to specify their addresses with legacy
-usb, we should either in case of legacy bus name drop the 0 from the
address bus, or just drop the 0 from device id. This patch does the
later.

Another solution would be to permit addressing on non-legacy USB
controllers only.
src/qemu/qemu_command.c
tests/qemuxml2argvdata/qemuxml2argv-input-usbmouse-addr.args
tests/qemuxml2argvdata/qemuxml2argv-usb-hub.args
tests/qemuxml2argvdata/qemuxml2argv-usb-ich9-companion.args
tests/qemuxml2argvdata/qemuxml2argv-usb-ich9-ehci-addr.args
tests/qemuxml2argvdata/qemuxml2argv-usb-piix3-controller.args
tests/qemuxml2argvdata/qemuxml2argv-usb-ports.args
tests/qemuxml2argvtest.c