usbredir slow when multi bulk packet per second
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QEMU |
Expired
|
Undecided
|
Unassigned |
Bug Description
QEMU Ver: all version
Client: virt-viewer with spice
Guest VM: win7
Bug description:
Use Qemu 2.1 or later with usbredir, When I redirect a bulk usb-device from virt-viewer client,the bulk-usb-device driver or app in GuestVM will send 50 bulk-urb per times.
In VM, using the usblyzer to monitor the usb packet, it show these 50 bulk-urb packet (24576 bytes per urb) send in 1ms, But in the QEMU VM log, It shows as below
=======
2019-01-
2019-01-
2019-01-
2019-01-
2019-01-
2019-01-
2019-01-
2019-01-
2019-01-
2019-01-
=======
It shows that the bulk packet is single thread send and recv, per bulk packet will use 10-20ms, all 50 bulk-packets will use 500~1000ms, so the in the VM, bulk-urb will timeout always!
How to send the bulk packet by multithread to speedup the bulk-urb send and recv, for example:
------------
bulk-out ep 86 stream 0 len 49152 id xxxx1
bulk-out ep 86 stream 0 len 49152 id xxxx2
bulk-out ep 86 stream 0 len 49152 id xxxx3
bulk-out ep 86 stream 0 len 49152 id xxxx4
bulk-out ...
bulk-out ep 86 stream 0 len 49152 id xxxx50
...
bulk-in status 0 ep 86 stream 0 len 49152 id xxxx1
bulk-in status 0 ep 86 stream 0 len 49152 id xxxx2
bulk-in status 0 ep 86 stream 0 len 49152 id xxxx3
bulk-in status 0 ep 86 stream 0 len 49152 id xxxx4
bulk-in ...
bulk-in status 0 ep 86 stream 0 len 49152 id xxxx50
------------
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
The QEMU project is currently considering to move its bug tracking to another system. For this we need to know which bugs are still valid and which could be closed already. Thus we are setting older bugs to "Incomplete" now.
If you still think this bug report here is valid, then please switch the state back to "New" within the next 60 days, otherwise this report will be marked as "Expired". Or mark it as "Fix Released" if the problem has been solved with a newer version of QEMU already. Thank you and sorry for the inconvenience.