Qemu does not hotplug (usb) devices

Bug #1376798 reported by ManDay
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
QEMU
Invalid
Undecided
Unassigned

Bug Description

Qemu passes through all devices on Bus 3 with host-usb all right when issued so on the command line such as

... -device usb-ehci,id=USBCtrl -device host-usb,bus=USBCtrl.0,hostaddr=5

but it does not pass through the devices newly hotplugged to the host after Qemu has already started. One has to explicitly issue

device_add host-usb,bus=USBCtrl.0 ....

on the monitor, in order for the guest (Win7 in my case) to see those devices.

Revision history for this message
Peter Wu (lekensteyn) wrote :

Not a bug, Linux increases the Device ID each time a new device gets hotplugged. If you need to use this option, pair it with already connected drivers by parsing the output of lsusb for instance.

You can still use combinations of hostbus, vendorid, productid, etc.

Changed in qemu:
status: New → Invalid
Revision history for this message
ManDay (manday) wrote :

Please note that since I did not specify a Device ID (a.k.a. Host Address) but only the bus (3), I'd expect all devices on bus 3 to be (automatically) added to the guest usb, even if they are plugged into the host after Qemu is started. I take the liberty of changing the status to "Opinion", if you still deem it invalid, feel free to close.

Changed in qemu:
status: Invalid → Opinion
Revision history for this message
ManDay (manday) wrote :

I just noticed that I had mistakenly written "hostaddr=5" in the initial post. That should have been hostbus=3. But I'll make sure my description is correct again and will close if it turns out not to be. Sorry for the confusion.

Revision history for this message
ManDay (manday) wrote :

Just closing anyway. If I find my description to correct I'll open a new bug with the correct description this time.

Changed in qemu:
status: Opinion → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.