Skip to contentSkip to conversation

Qemu does not hotplug (usb) devices

Qemu-devel ManDay 2 participants 6 messages Oct 2, 2014 – Oct 3, 2014

lore
Share & tools
lore

ManDay

author
#0 lore raw

Public bug reported:

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.

** Affects: qemu
Importance: Undecided
Status: New

Signature · 27 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1376798

Title:
  Qemu does not hotplug (usb) devices

Status in QEMU:
  New

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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1376798/+subscriptions
#1 lore raw

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

Signature · 27 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1376798

Title:
  Qemu does not hotplug (usb) devices

Status in QEMU:
  Invalid

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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1376798/+subscriptions
author
#2 lore raw
In reply to ManDay

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

Signature · 27 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1376798

Title:
  Qemu does not hotplug (usb) devices

Status in QEMU:
  Opinion

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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1376798/+subscriptions
author
#3 lore raw
In reply to ManDay

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.

Signature · 27 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1376798

Title:
  Qemu does not hotplug (usb) devices

Status in QEMU:
  Invalid

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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1376798/+subscriptions
author
#4 lore raw
In reply to ManDay

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

Signature · 27 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1376798

Title:
  Qemu does not hotplug (usb) devices

Status in QEMU:
  Invalid

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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1376798/+subscriptions
author
#5 lore raw
In reply to ManDay

*** This bug is a duplicate of bug 1377163 ***

    https://bugs.launchpad.net/bugs/1377163

** This bug has been marked a duplicate of bug 1377163
Does not add usb-host devices as they are hotplugged

Signature · 27 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1376798

Title:
  Qemu does not hotplug (usb) devices

Status in QEMU:
  Invalid

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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1376798/+subscriptions