From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anthony Liguori Subject: Re: [PATCH] husb: Make control transactions asynchronous (v2) Date: Sat, 13 Sep 2008 20:09:34 -0500 Message-ID: <48CC644E.8000304@codemonkey.ws> References: <1221343245-24803-1-git-send-email-maxk@kernel.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: aurelien@aurel32.net, qemu-devel@nongnu.org, kvm@vger.kernel.org To: Max Krasnyansky Return-path: Received: from yw-out-2324.google.com ([74.125.46.28]:38542 "EHLO yw-out-2324.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753165AbYINBK2 (ORCPT ); Sat, 13 Sep 2008 21:10:28 -0400 Received: by yw-out-2324.google.com with SMTP id 9so473862ywe.1 for ; Sat, 13 Sep 2008 18:10:27 -0700 (PDT) In-Reply-To: <1221343245-24803-1-git-send-email-maxk@kernel.org> Sender: kvm-owner@vger.kernel.org List-ID: 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