From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Keli2-0007ia-9m for qemu-devel@nongnu.org; Sun, 14 Sep 2008 03:07:50 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Keli0-0007ex-N0 for qemu-devel@nongnu.org; Sun, 14 Sep 2008 03:07:49 -0400 Received: from [199.232.76.173] (port=34281 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Keli0-0007ep-Jj for qemu-devel@nongnu.org; Sun, 14 Sep 2008 03:07:48 -0400 Received: from mx20.gnu.org ([199.232.41.8]:55661) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Keli0-0002Ic-2a for qemu-devel@nongnu.org; Sun, 14 Sep 2008 03:07:48 -0400 Received: from wf-out-1314.google.com ([209.85.200.174]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Kelhz-0003UA-83 for qemu-devel@nongnu.org; Sun, 14 Sep 2008 03:07:47 -0400 Received: by wf-out-1314.google.com with SMTP id 27so1507029wfd.4 for ; Sun, 14 Sep 2008 00:07:45 -0700 (PDT) Message-ID: Date: Sun, 14 Sep 2008 10:07:45 +0300 From: "Blue Swirl" Subject: Re: [Qemu-devel] [5204] husb: Make control transactions asynchronous (Max Krasnyansky) In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: 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 On 9/14/08, Anthony Liguori wrote: > Revision: 5204 > http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5204 > Author: aliguori > Date: 2008-09-14 01:06:09 +0000 (Sun, 14 Sep 2008) > > Log Message: > ----------- > husb: Make control transactions asynchronous (Max Krasnyansky) > > USB is 99.8% async now :). 0.2% is the three control requests that > we need to execute synchronously. We could off-load that to a thread > or something but it's not worth the pain since those requests are > performed only during device initialization (ie when device is > connected to the VM). > > The change is a bit bigger than I wanted due to the fact that generic > handle_packet()/handle_control() interface was not designed for > async transactions. So I ended up adding custom handle_packet() > code to usb-linux. We can make that generic if/when some other > component needs it. > +#include My Debian machines do not have this header file. Is it only used for the structure definition that was removed by the commit?