From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Keg8F-0003bf-SE for qemu-devel@nongnu.org; Sat, 13 Sep 2008 21:10:31 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Keg8E-0003bC-6m for qemu-devel@nongnu.org; Sat, 13 Sep 2008 21:10:31 -0400 Received: from [199.232.76.173] (port=45175 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Keg8E-0003b8-3X for qemu-devel@nongnu.org; Sat, 13 Sep 2008 21:10:30 -0400 Received: from wx-out-0506.google.com ([66.249.82.237]:26136) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Keg8D-00013y-7q for qemu-devel@nongnu.org; Sat, 13 Sep 2008 21:10:29 -0400 Received: by wx-out-0506.google.com with SMTP id h27so646859wxd.4 for ; Sat, 13 Sep 2008 18:10:27 -0700 (PDT) Message-ID: <48CC644E.8000304@codemonkey.ws> Date: Sat, 13 Sep 2008 20:09:34 -0500 From: Anthony Liguori MIME-Version: 1.0 References: <1221343245-24803-1-git-send-email-maxk@kernel.org> In-Reply-To: <1221343245-24803-1-git-send-email-maxk@kernel.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [PATCH] husb: Make control transactions asynchronous (v2) Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Max Krasnyansky Cc: qemu-devel@nongnu.org, aurelien@aurel32.net, kvm@vger.kernel.org Max Krasnyansky wrote: > 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. > > Signed-off-by: Max Krasnyansky > Applied. Thanks. Regards, Anthony Liguori