Bug 949225
| Summary: | Passthrough USB 2.0 stick can't be detected inside windows guest using uhci controller under pc-i440fx-xx machine type | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Sibiao Luo <sluo> | ||||
| Component: | qemu-kvm | Assignee: | Gerd Hoffmann <kraxel> | ||||
| Status: | CLOSED NOTABUG | QA Contact: | Virtualization Bugs <virt-bugs> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | 7.0 | CC: | acathrow, chayang, hhuang, juzhang, kraxel, michen, qzhang, qzhou, rhod, 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-08-01 12:28:29 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-07 05:52:40 UTC
Created attachment 732276 [details]
device manager of screenshot for passthrough USB2.0 stick to guest under pc-i440fx-1.4.
My USB detail info:
Bus 002 Device 022: ID 0951:1642 Kingston Technology DT101 G2
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x0951 Kingston Technology
idProduct 0x1642 DT101 G2
bcdDevice 1.00
iManufacturer 1 Kingston
iProduct 2 DT 101 G2
iSerial 3 001CC0EC32C7BB4107110077
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 32
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 200mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 8 Mass Storage
bInterfaceSubClass 6 SCSI
bInterfaceProtocol 80 Bulk-Only
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Device Qualifier (for other device speed):
bLength 10
bDescriptorType 6
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
bNumConfigurations 1
Device Status: 0x0000
(Bus Powered)
I also tried the USB3.0 stick with uhci, it fail to be detected in guest, but according to the bug 921483 comment #5 that USB 3.0 stick must be passedthrough using ehci (or xhci) and USB 2.0 stick which support 1.1 controller. # lspci -v ... 00:1d.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 (rev 04) (prog-if 20 [EHCI]) Subsystem: Hewlett-Packard Company Device 1495 Flags: bus master, medium devsel, latency 0, IRQ 23 Memory at fe726000 (32-bit, non-prefetchable) [size=1K] Capabilities: [50] Power Management version 2 Capabilities: [58] Debug port: BAR=1 offset=00a0 Capabilities: [98] PCI Advanced Features Kernel driver in use: ehci-pci ... please retest with qemu 1.5, switch to libvirt-based usb-host implementation might have fixed this. Hi Sluo, Please retest once our internal build which is based on qemu.15. (In reply to Gerd Hoffmann from comment #5) > please retest with qemu 1.5, switch to libvirt-based usb-host implementation > might have fixed this. (In reply to juzhang from comment #6) > Hi Sluo, > > Please retest once our internal build which is based on qemu.15. Still hit this issue on qemu-kvm-1.5.0-2.el7.x86_64. Passthrough USB 2.0 stick to windows guest using uhci controller under pc-i440fx-1.5, but can't be detected it inside guest, it has problem. Btw, if i test it under the Q35 using uhci controller, it have no such issue. host info: kernel-3.10.0-0.rc2.57.el7.x86_64 qemu-kvm-1.5.0-2.el7.x86_64 guest info: win-2012 64bit Best Regards, sluo Seems to be a guest issue. Windows complains about invalid parameters in the device manager. Which -- strictly speaking -- is correct. The device runs in usb2 mode on the host, and the usb descriptors may violate the usb1 specs. With luck it may work nevertheless, and often it does. Linux guests for example don't care, likewise older Windows versions. But here is no guarantee that it will work. Please attach the usb2 stick to a ehci or xhci controller. |