The logs make total sense, thank you!

OK on lsusb:
We see the HID devices flip from "usbhid" driver to "usbfs" with the initial 
start.
They no more change on the reset.


On the journal entries we see on the initial guest start that gnome has to 
yield the devices (OK).
USB isn't mentioned at all on this initial start
No errors that would seem obvious there.  ...

Then on the reset we see (due to the reset) that the host kernel seems to do a 
USB reset
Dec 01 14:36:10 linuxServer kernel: usb 1-1.1: reset full-speed USB device 
number 4 using xhci_hcd
Dec 01 14:36:10 linuxServer upowerd[4208]: treating change event as add on 
/sys/devices/pci0000:00/0000:00:01.3/0000:02:00.0/usb1/1-1/1-1.1
Dec 01 14:36:10 linuxServer upowerd[4208]: treating change event as add on 
/sys/devices/pci0000:00/0000:00:01.3/0000:02:00.0/usb1/1-1/1-1.1

That does not immediately point to the issue unfortunately :-/

I assume the bus reset is done as part of giving the devices back and
resetting them.


Maybe we should try to reset this device when the hang happens ourselve to see 
if it does something:
Be warned, this could be bad as in "need to reboot afterwards"
Device: 
  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/10p, 480M

I'm unsure which reset exactly that was, maybe the following (re-)initializes 
too much but you might try (when the guest hangs):
$ cd /sys/bus/pci/drivers/xhci_hcd/; echo -n "0000:00:01.3" > unbind; echo -n 
"0000:00:01.3" > bind;

On a similar note, any success if you replug one of those devices?


---

On (2) you said:
"I can't say if this happens with other guests or not, as I only bind this USB 
device to this particular (guest) OS"
=> But you can for a try shut that guest down and use another e.g. Ubuntu guest 
with the same forwarding to try right?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1906155

Title:
  USB Passthrough Fails on Start, Needs domain Reset

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

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to