[Spice-devel] usbredir :why "cancel_data_packet" found?
jiangdahui
jdh1988 at yeah.net
Wed Mar 18 06:33:57 PDT 2015
Hi ALL:
I'm working on usbredir with spicy on sparc and spice server on x86.
After adjust endian for arch, and observe the debug info, I find that a unexpected interactive.
=====================================================================================================
spicy(usb host) spice server(usb guest)
<--------usb_redir_control_packet------------------------
transfer data....
??? :unknown handle for me
<--------usb_redir_cancel_data_packet-----------------
transfer data over---------usb_redir_control_packet(with data)---------->
cancel the packet
=====================================================================================================
interactive like these lead to failure of packet transfer between the two at the end.
I guess the reason the spice server send "usb_redir_cancel_data_packet" is that it is too slow that the usb host reply with "usb_redir_control_packet" in function "usbredirhost_control_packet_complete", because when I gdb it in X86, if I break in the function for a while , "usb_redir_cancel_data_packet" also found.
so how to solve, yes, the usb host has not so good performance, but for the usbredir function, it should be enough, I mean is it possible that some expire time in qemu can be adjusted or other method can harmonize the two ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20150318/345ca9f5/attachment.html>
More information about the Spice-devel
mailing list