Bug 1046524
| Summary: | the USB3.0 stick fail to work when passthrough it to win2012R2 guest with xHCI controller | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| 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: | areis, chayang, hhuang, jinzhao, juzhang, knoel, kraxel, mazhang, michen, qzhang, rbalakri, sharpwiner, virt-bugs, virt-maint, xfu, xqu | ||||||
| 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: | 2016-05-17 18:03:05 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: | |||||||||
| Bug Depends On: | |||||||||
| Bug Blocks: | 947042, 1103193, 1146483, 1146486 | ||||||||
| Attachments: |
|
||||||||
|
Description
Sibiao Luo
2013-12-26 02:41:49 UTC
Created attachment 841709 [details]
USB_Mass_Storage_Device_Properties.
Created attachment 841710 [details]
Screenshot_for_Disk_Management.
Tried the Q35 machine type also hit the same issue. Tried the simulate usb-storage with xHCI controller that work well. Summarize it as following: 1.USB3.0 stick passthrough to windows guest with xHCI under q35/pc ----- Fail 2.USB3.0 stick passthrough to RHEL guest with xHCI under q35/pc ----- OK 3.USB2.0 stick passthrough to RHEL/windows guest with xHCI ----- OK 4.Simulate usb-storage with xHCI controller in widows/rhel guest ----- OK Best Regards, sluo Can I get full "lsusb -v" output for the stick please? (In reply to Gerd Hoffmann from comment #6) > Can I get full "lsusb -v" output for the stick please? My USB3.0 stick info: # lsusb | grep CompUSA Bus 004 Device 002: ID 1516:6221 CompUSA # lsusb -v ... Bus 004 Device 002: ID 1516:6221 CompUSA Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 3.00 bDeviceClass 0 (Defined at Interface level) bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 9 idVendor 0x1516 CompUSA idProduct 0x6221 bcdDevice 1.00 iManufacturer 1 iProduct 2 iSerial 3 ��� bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 44 bNumInterfaces 1 bConfigurationValue 1 iConfiguration 0 bmAttributes 0x80 (Bus Powered) MaxPower 0mA 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 0x01 EP 1 OUT bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0400 1x 1024 bytes bInterval 0 bMaxBurst 3 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x82 EP 2 IN bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0400 1x 1024 bytes bInterval 0 bMaxBurst 3 Binary Object Store Descriptor: bLength 5 bDescriptorType 15 wTotalLength 22 bNumDeviceCaps 2 USB 2.0 Extension Device Capability: bLength 7 bDescriptorType 16 bDevCapabilityType 2 bmAttributes 0x00000002 Link Power Management (LPM) Supported SuperSpeed USB Device Capability: bLength 10 bDescriptorType 16 bDevCapabilityType 3 bmAttributes 0x00 wSpeedsSupported 0x000e Device can operate at Full Speed (12Mbps) Device can operate at High Speed (480Mbps) Device can operate at SuperSpeed (5Gbps) bFunctionalitySupport 1 Lowest fully-functional device speed is Full Speed (12Mbps) bU1DevExitLat 10 micro seconds bU2DevExitLat 2047 micro seconds Device Status: 0x0000 (Bus Powered) Doesn't reproduce locally, please retest with latest packages. (In reply to Gerd Hoffmann from comment #10) > Doesn't reproduce locally, please retest with latest packages. Still hit it with the same testing as comment #0 locally. host info: # uname -r && rpm -q qemu-kvm-rhev 3.10.0-121.el7.x86_64 qemu-kvm-rhev-1.5.3-60.el7ev.x86_64 guest info: windows_server_2012_r2_x64 # lsusb Bus 004 Device 002: ID 1516:6221 CompUSA ... e.g:...-device nec-usb-xhci,id=xhci0,bus=pci.0,addr=0x7 -device usb-host,hostbus=4,hostaddr=2,id=usb-stick,bus=xhci0.0 (qemu) info usb Device 0.1, Port 1, Speed 12 Mb/s, Product QEMU USB Tablet Device 1.1, Port 1, Speed 5000 Mb/s, Product It can regonize the xhci controller but the USB Mass Storage Device fail to work in device manager. Please see attachment 841709 [details] for detail. Best Regards, sluo Please retest with this test build: http://people.redhat.com/ghoffman/bz1103193/ Hmm, still doesn't reproduce. Can you try again with an updated host kernel? /me runs 3.10.0-138.el7, 3.10.0-146.el7 is available meanwhile. please retest with qemu 2.3+ (In reply to Gerd Hoffmann from comment #18) > please retest with qemu 2.3+ Hi Gerd, I have retested with qemu-kvm-rhev-2.3.0-1.el7.x86_64, still hit this issue, too. cli: # /usr/libexec/qemu-kvm -monitor stdio -drive file=/home/win2012-64r2-virtio.qcow2,id=img,if=none,snapshot=on -device virtio-blk-pci,drive=img,id=sys-img -spice port=5931,disable-ticketing -m 2G -netdev tap,id=tap0,script=/etc/qemu-ifup -device virtio-net-pci,netdev=tap0,mac=24:be:05:0c:11:11,id=net0 --nodefaults -vga cirrus \ -device nec-usb-xhci,id=xhci0,bus=pci.0,addr=0x7 \ -device usb-host,hostbus=4,hostaddr=2,id=usb-stick,bus=xhci0.0 (In reply to quxiaoya from comment #20) > (In reply to Gerd Hoffmann from comment #18) > > please retest with qemu 2.3+ > > Hi Gerd, > > I have retested with qemu-kvm-rhev-2.3.0-1.el7.x86_64, still hit this issue, > too. Any host kernel error messages? Any change in behavior if you match the stick by vendorid + productid instead of hostbus and hostaddr? Hi Jing, Could you give a test and update the testing result? Best Regards, Junyi Hi Jing, Could you reply comment30? Best Regards, Junyi |