[Spice-devel] spicy usbredir with USB mass storage device spend 30~60 seconds
Hans de Goede
hdegoede at redhat.com
Mon Jul 9 06:15:59 PDT 2012
Hi,
On 07/08/2012 06:12 AM, Lv Basen wrote:
> HI all:
>
> I have setup a box running spicy with usb redirection, when pulg-in a usb mass storage device( 200GB ) in the box,
> It shoud spend 60 seconds, then we can found the usb device in virtual machine os.
>
> I enabled the debug log with --enable-debug-log=yes when configure libusb, and find there is very much "usb_redir_bulk_packet"
> data packets.
>
> how can I do speed up the initial usb redirect with spicy.
You cannot I'm afraid USB mass storage devices can only handle one command at a time, so
what happens is:
send command, wait reply, send command, wait reply
Normally this is reasonable quick, but with usb redirection added to the loop
atleast 1 ms of latency gets inserted after each step, making things slow, esp. when
there is a lot of small packets going back and forth.
Still 1 minute seems quite long. Is this with a windows or a Linux guest? With Linux
guests usb sticks come up in a couple of seconds for me.
Regards,
Hans
More information about the Spice-devel
mailing list