From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KTjL6-0000OX-GW for qemu-devel@nongnu.org; Thu, 14 Aug 2008 16:22:32 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KTjL5-0000Ny-3G for qemu-devel@nongnu.org; Thu, 14 Aug 2008 16:22:32 -0400 Received: from [199.232.76.173] (port=54417 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KTjL4-0000Nu-NW for qemu-devel@nongnu.org; Thu, 14 Aug 2008 16:22:30 -0400 Received: from mail-gx0-f19.google.com ([209.85.217.19]:41710) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KTjL4-0006C8-Ar for qemu-devel@nongnu.org; Thu, 14 Aug 2008 16:22:30 -0400 Received: by gxk12 with SMTP id 12so2651767gxk.10 for ; Thu, 14 Aug 2008 13:22:29 -0700 (PDT) Message-ID: <48A493DE.40506@codemonkey.ws> Date: Thu, 14 Aug 2008 15:21:50 -0500 From: Anthony Liguori MIME-Version: 1.0 References: <48A46033.3070200@codemonkey.ws> <48A489D3.5070900@kernel.org> In-Reply-To: <48A489D3.5070900@kernel.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [PATCH 2/5] husb: support for USB host device auto connect. 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, kvm@vger.kernel.org Max Krasnyansky wrote: > Anthony Liguori wrote: > >> Max Krasnyansky wrote: >> >>> Anyway, it's implemented using a periodic timer that scans host devices >>> and grabs those that match the filter. Timer is started when the first >>> filter is added. >>> >>> >> Again, there has to be a way to get notified of usb device add/remove in >> Linux. >> > > Yes the best way is probably registering with HAL via dbus. > I was afraid you would say that :-) > Do you mind if we do something like that incrementally ? > Yeah, I don't really want to have QEMU depend on dbus so in this case, polling would be better. > ie Merge the current patch then change polling to HAL registration. > That would simplify testing/patch stacking for me. Existing users are > not affected anyway since the timer is activated only when new filter is added. > Regards, Anthony Liguori