From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:57046) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TDuD8-0004yq-L2 for qemu-devel@nongnu.org; Tue, 18 Sep 2012 05:35:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TDuD1-0000gQ-7l for qemu-devel@nongnu.org; Tue, 18 Sep 2012 05:35:18 -0400 Received: from mx1.redhat.com ([209.132.183.28]:27502) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TDuD0-0000dI-VQ for qemu-devel@nongnu.org; Tue, 18 Sep 2012 05:35:11 -0400 Message-ID: <505841CA.9020004@redhat.com> Date: Tue, 18 Sep 2012 11:41:30 +0200 From: Hans de Goede MIME-Version: 1.0 References: <5054AC57.205@web.de> <5056E876.9010400@redhat.com> <5056EAF2.60205@web.de> <50573283.3080206@redhat.com> <50574E4F.8070509@siemens.com> In-Reply-To: <50574E4F.8070509@siemens.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] usb-redir: Allow to attach USB 2.0 devices to 1.1 host controller List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jan Kiszka Cc: qemu-devel , Gerd Hoffmann Hi, On 09/17/2012 06:22 PM, Jan Kiszka wrote: >> If that does not work, add the debug parameter to the usb-redir device, >> set it >> to 4, collect logs of trying to redirect the device and send me the logs >> please, ie: >> -device usb-redir,chardev=usbredirchardev1,id=usbredirdev1,debug=4 >> >> Also be aware that usb-redir relies on chardev flowcontrol working, >> which it does not upstream! See for example here for the chardev flow >> control patch set which RHEL / Fedora carry: >> http://cgit.freedesktop.org/~jwrdegoede/qemu/log/?h=qemu-kvm-1.2-usbredir&ofs=50 >> >> >> And then the first 13 patches after: "Merge tag 'v1.2.0'" >> >> Oh, and also, if you're running qemu git master, make sure you've: >> http://cgit.freedesktop.org/~jwrdegoede/qemu/commit/?id=81e34f5973d8d6a1ef998a50c4a4bf66abb3b56b >> > > I used qemu-kvm-1.2-usbredir^ (the last commit is apparently broken - > copy&paste bug?). Yeah, that has been fixed now. > I'm getting this right after typing cat /dev/ACM0 in > the guest. It's an endless stream, and so is the output in the guest > although there should be nothing to dump (that's the proper behaviour on > the host). Hmm, can you try commenting out line 1608 of hw/usb/redirect.c: usb_ep->pipeline = true; And see if that helps. If it does not help, please bump the debug level to 5 (this will also make it log packet contents), and then generate another log, and then it is time to dive into the ACM protocol to see what is happening... Regards, Hans