From mboxrd@z Thu Jan 1 00:00:00 1970 From: Max Krasnyansky Subject: Re: [PATCH 2/5] husb: support for USB host device auto connect. Date: Thu, 14 Aug 2008 13:34:49 -0700 Message-ID: <48A496E9.2030800@kernel.org> References: <48A46033.3070200@codemonkey.ws> <48A489D3.5070900@kernel.org> <48A493DE.40506@codemonkey.ws> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: qemu-devel@nongnu.org, kvm@vger.kernel.org To: Anthony Liguori Return-path: Received: from hera.kernel.org ([140.211.167.34]:39215 "EHLO hera.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752654AbYHNUfC (ORCPT ); Thu, 14 Aug 2008 16:35:02 -0400 In-Reply-To: <48A493DE.40506@codemonkey.ws> Sender: kvm-owner@vger.kernel.org List-ID: Anthony Liguori wrote: > 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. I'm thinking that maybe we could use 'inotify' on /proc/bus/usb. Would you be ok with 'inotify' ? Max