Bug 949511
Summary: | fail to passthrough the USB3.0 stick to windows guest redirected from usb-host with xHCI controller | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Sibiao Luo <sluo> | ||||
Component: | qemu-kvm | Assignee: | Hans de Goede <hdegoede> | ||||
Status: | CLOSED DUPLICATE | QA Contact: | Virtualization Bugs <virt-bugs> | ||||
Severity: | high | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 7.0 | CC: | acathrow, chayang, hhuang, juzhang, kraxel, michen, qzhang, qzhou, rhod, sluo, virt-maint, xfu | ||||
Target Milestone: | rc | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2013-07-11 08:20:16 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Sibiao Luo
2013-04-08 10:34:16 UTC
Please reassign if this problem turns out to be in the Windows guest. See also bug 949514 (simliar issue for usb-host). I've just tested this with a Linux guest, and everything works fine for me: (qemu) info usb Device 0.1, Port 3, Speed 5000 Mb/s, Product USB Redirection Device Sibiao Luo, the "Device 0.0" in your "info usb" output suggest that no device has been redirected at all. Are you sure the the usb-stick was redirected ? Maybe the remote-viewer window did not have the keyboard focus when you plugged in the stick ? Can you please try again, and after inserting the stick, in remote-viewer go to "File -> USB device selection" and ensure that the usb3 stick is selected there ? (In reply to Hans de Goede from comment #3) > I've just tested this with a Linux guest, and everything works fine for me: > > (qemu) info usb > Device 0.1, Port 3, Speed 5000 Mb/s, Product USB Redirection Device > > Sibiao Luo, the "Device 0.0" in your "info usb" output suggest that no > device has been redirected at all. > > Are you sure the the usb-stick was redirected ? > > Maybe the remote-viewer window did not have the keyboard focus when you > plugged in the stick ? > > Can you please try again, and after inserting the stick, in remote-viewer go > to "File -> USB device selection" and ensure that the usb3 stick is selected > there ? Yes, I change the debug=2 and retest it again in qemu-kvm-1.5.1-2.el7.x86_64 with the same steps as comment #0. It can redirected the USB3.0 stick from usb-host with xHCI controller to win2012 guest, but fail to detect the stick in guest as there was a 'Unknow USB Device (Port Reset Failed)', but the 'Renesas USB3.0 eXtensible Host Controller - 0100(Microsoft)' display well, I will attach the creenshot later. Host info: # uname -r && rpm -q qemu-kvm 3.10.0-1.el7.x86_64 qemu-kvm-1.5.1-2.el7.x86_64 guest info: win2012 64bit # lsusb | grep CompUSA Bus 004 Device 003: ID 1516:6221 CompUSA # /usr/libexec/qemu-kvm -S -M pc-i440fx-rhel7.0.0...-device nec-usb-xhci,id=xhci0 -chardev spicevmc,name=usbredir,id=usbredirchardev1 -device usb-redir,chardev=usbredirchardev1,id=usbredirdev1,debug=2 (qemu) info usb Device 0.1, Port 1, Speed 5000 Mb/s, Product USB Redirection Device (qemu) info usbhost Bus 4, Addr 3, Port 2, Speed 5000 Mb/s Class 00: USB device 1516:6221, Bus 1, Addr 4, Port 1.3.1, Speed 1.5 Mb/s Class 00: USB device 0557:2213, CS-1734A V4.2.414 (qemu) info qtree bus: main-system-bus type System dev: kvm-ioapic, id "" gpio-in 24 gsi_base = 0 irq 0 mmio 00000000fec00000/0000000000001000 dev: i440FX-pcihost, id "" irq 0 bus: pci.0 type PCI dev: nec-usb-xhci, id "xhci0" msi = on msix = on intrs = 16 slots = 64 p2 = 4 p3 = 4 addr = 07.0 romfile = <null> rombar = 1 multifunction = off command_serr_enable = on class USB controller, addr 00:07.0, pci id 1033:0194 (sub 1af4:1100) bar 0: mem at 0xfebd0000 [0xfebd3fff] bus: xhci0.0 type usb-bus dev: usb-redir, id "usbredirdev1" chardev = usbredirchardev1 debug = 2 filter = <null> bootindex = -1 port = <null> full-path = on addr 0.1, port 1, speed 5000, name USB Redirection Device, attached ... Best Regards, sluo Created attachment 771926 [details]
creenshot for the guest.
(In reply to Sibiao Luo from comment #4) > (In reply to Hans de Goede from comment #3) > > Can you please try again, and after inserting the stick, in remote-viewer go > > to "File -> USB device selection" and ensure that the usb3 stick is selected > > there ? > > Yes, I change the debug=2 and retest it again in qemu-kvm-1.5.1-2.el7.x86_64 > with the same steps as comment #0. <snip> > (qemu) info usb > Device 0.1, Port 1, Speed 5000 Mb/s, Product USB Redirection Device Notice how the device now does have an address, and the speed is correct, so now usbredir is working properly but there seems to be an incompatibility between qemu's xhci emulation and the win2012 guest. Also the error in the screenshot now is exactly the same as the one with qemu's host redirection. Marking this bug as a duplicate of the qemu bug, as this seems to be a qemu issue. *** This bug has been marked as a duplicate of bug 949514 *** |