qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] about the usbredirect lib problem run under Windows
@ 2013-04-28  2:09 zhou link
  2013-04-29  8:34 ` Hans de Goede
  0 siblings, 1 reply; 2+ messages in thread
From: zhou link @ 2013-04-28  2:09 UTC (permalink / raw)
  To: qemu-devel; +Cc: spice-devel, kraxel, hdegoede

[-- Attachment #1: Type: text/plain, Size: 1403 bytes --]

Hans de Goede  & Gerd Hoffmann:


theses  days   i  try  to migrate the usbredir  lib to  Windows

the  usbredir-0.6/usbredirserver/usbredirserver.c  connect to qemu's
redirect channel and spicec connect to the guest

the usbredirserver  works smooth in Linux,  spicec show the usb disk works
well.


when i compile usbredir on Windows,  usbredirserver connect and open usb
device ok,

but qemu's guest(windows xp) in spicec can detect the usb device,  but only
show unkown usb device,

i open the device in hardware manager, and  found pid and vid is all 000.


i debug the qemu's redirect  code(hw/usb/hcd_ehci.c),  and found the diff
between  linux's and windows's  usbredirserver
is here:

-----------------------------------------------------------------------------------------
static int ehci_execute(EHCIPacket *p, const char *action)
...............
   p->pid = ehci_get_pid(&p->qtd);
    p->queue->last_pid = p->pid;
    endp = get_field(p->queue->qh.epchar, QH_EPCHAR_EP);   ///On windows it
always return 0

             ///while Linux it will return 0, 1 or 2
    ep = usb_ep_get(p->queue->dev, p->pid, endp);

-------------------------------------------------------------------------------------------

i found the qh.epchar read from dma,  but can not find who write it,
can you  explain it the flow of the function.
how  doest usbredirect   control the dma ?

thanks you tow  very much.

[-- Attachment #2: Type: text/html, Size: 2178 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] about the usbredirect lib problem run under Windows
  2013-04-28  2:09 [Qemu-devel] about the usbredirect lib problem run under Windows zhou link
@ 2013-04-29  8:34 ` Hans de Goede
  0 siblings, 0 replies; 2+ messages in thread
From: Hans de Goede @ 2013-04-29  8:34 UTC (permalink / raw)
  To: zhou link; +Cc: spice-devel, qemu-devel, kraxel

Hi,

On 04/28/2013 04:09 AM, zhou link wrote:
> Hans de Goede  & Gerd Hoffmann:
>
>
> theses  days   i  try  to migrate the usbredir  lib to  Windows
>
> the  usbredir-0.6/usbredirserver/usbredirserver.c  connect to qemu's redirect channel and spicec connect to the guest
>
> the usbredirserver  works smooth in Linux,  spicec show the usb disk works well.
>
>
> when i compile usbredir on Windows,  usbredirserver connect and open usb device ok,

usbredirserver is not supported under Windows. It may compile, but it won't work, as it
depends on select() for usb event handling and libusb does not support select under
windows.

Regards,

Hans

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-04-29  8:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-28  2:09 [Qemu-devel] about the usbredirect lib problem run under Windows zhou link
2013-04-29  8:34 ` Hans de Goede

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).