Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Iq4uX-0002o6-Io for qemu-devel@nongnu.org; Thu, 08 Nov 2007 05:46:57 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Iq4uV-0002n8-I5 for qemu-devel@nongnu.org; Thu, 08 Nov 2007 05:46:56 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iq4uV-0002n3-3p for qemu-devel@nongnu.org; Thu, 08 Nov 2007 05:46:55 -0500 Received: from an-out-0708.google.com ([209.85.132.248]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Iq4uU-0003rn-Mn for qemu-devel@nongnu.org; Thu, 08 Nov 2007 05:46:54 -0500 Received: by an-out-0708.google.com with SMTP id b8so12928ana for ; Thu, 08 Nov 2007 02:46:54 -0800 (PST) Message-ID: <7f7951300711080246w57b3fa68i30cf9a405cfb134e@mail.gmail.com> Date: Thu, 8 Nov 2007 16:16:53 +0530 From: "Salil Bijur" Subject: Re: [Qemu-devel] No cancel callback for usb-ohci In-Reply-To: <64F9B87B6B770947A9F8391472E032160EDA8411@ehost011-8.exch011.intermedia.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <7f7951300711072250l4ac0dd27m47a23de5e4e3739a@mail.gmail.com> <64F9B87B6B770947A9F8391472E032160EDA8411@ehost011-8.exch011.intermedia.net> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Hi Arnon, On Nov 8, 2007 3:28 PM, Arnon Gilboa wrote: > Seems like an ugly bug (common also to uhci), which I haven't noticed > before. > I guess this scenario has never happened to me. Can you please describe > it? What I'm trying to do is to prevent the lag caused by the USBDEVFS_BULK ioctl and instead send the bulk transfers asynchronously using the USBDEVFS_SUBMITURB ioctl. I'm taking the help of the patch you had sent for isochronous packets. This scenario occurs when the usb bluetooth dongle is added to the linux guest and its interface is brought up. > Call usb_defer_packet with cancel_cb which flags the packet, so the > following usb_packet_complete will be ignored. To call usb_defer_packet, there needs to be a callback function like the usb_msd_cancel_io function used in hw/usb-msd.c: usb_defer_packet(p, usb_msd_cancel_io, s); There doesn't seem to be a similar cancel_cb callback for ohci. An empty stub function prevents this crash, but should it be doing more stuff like the msd one does? Salil > > > -----Original Message----- > From: qemu-devel-bounces+arnong=qumranet.com@nongnu.org > [mailto:qemu-devel-bounces+arnong=qumranet.com@nongnu.org] On Behalf Of > Salil Bijur > Sent: Thursday, November 08, 2007 8:51 AM > To: qemu-devel@nongnu.org > Subject: [Qemu-devel] No cancel callback for usb-ohci > > Hello, > > There is a call to the function usb_cancel_packet in hw/usb-ohci.c. > However, there is no cancel_cb callback registered for the > ohci->usb_packet resulting in a segmentation fault. > > Are there any plans to implement this cancel callback? > > Thanks, > Salil > > > > >