From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anthony Liguori Subject: Re: [PATCH 2/5] husb: support for USB host device auto connect. Date: Thu, 14 Aug 2008 15:21:50 -0500 Message-ID: <48A493DE.40506@codemonkey.ws> References: <48A46033.3070200@codemonkey.ws> <48A489D3.5070900@kernel.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: qemu-devel@nongnu.org, kvm@vger.kernel.org To: Max Krasnyansky Return-path: Received: from mail-gx0-f16.google.com ([209.85.217.16]:60346 "EHLO mail-gx0-f16.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752600AbYHNUWa (ORCPT ); Thu, 14 Aug 2008 16:22:30 -0400 Received: by gxk9 with SMTP id 9so2813706gxk.13 for ; Thu, 14 Aug 2008 13:22:29 -0700 (PDT) In-Reply-To: <48A489D3.5070900@kernel.org> Sender: kvm-owner@vger.kernel.org List-ID: 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