From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anthony Liguori Subject: Re: [Qemu-devel] Re: [PATCH 2/5] husb: support for USB host device auto connect. Date: Mon, 18 Aug 2008 09:11:11 -0500 Message-ID: <48A982FF.8070903@codemonkey.ws> References: <48A46033.3070200@codemonkey.ws> <48A489D3.5070900@kernel.org> <48A493DE.40506@codemonkey.ws> <48A496E9.2030800@kernel.org> <48A49878.1010502@codemonkey.ws> <20080815074638.GA31016@bogon.ms20.nix> <48A5C9F2.5080400@kernel.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: =?ISO-8859-1?Q?Guido_G=FCnther?= , qemu-devel@nongnu.org, kvm@vger.kernel.org To: Max Krasnyansky Return-path: Received: from mail-gx0-f16.google.com ([209.85.217.16]:41035 "EHLO mail-gx0-f16.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752332AbYHROLy (ORCPT ); Mon, 18 Aug 2008 10:11:54 -0400 Received: by gxk9 with SMTP id 9so3729670gxk.13 for ; Mon, 18 Aug 2008 07:11:53 -0700 (PDT) In-Reply-To: <48A5C9F2.5080400@kernel.org> Sender: kvm-owner@vger.kernel.org List-ID: Max Krasnyansky wrote: > Guido G=FCnther wrote: > =20 >> What about /dev/bus/usb - it supports inotify fine on udev? >> =20 > > Yes it should since it's a regular filesystem. > =20 I was thinking of this too since /proc/bus/usb is deprecated in favor o= f=20 /dev/bus/usb. If someone was willing to port QEMU to /dev/bus/usb, it=20 would be greatly appreciated! Regards, Anthony Liguori > Now inotify based solution probably won't be pretty because we'd have= to > monitor each subdir. ie When new device get added top level /dev/bus/= usb is > not modified, what does get modified is /dev/bus/usb// direc= tory so > we'd have to monitor /dev/bus/usb and dynamically register/unregister= monitors > for each /dev/bus/usb//. > Maybe it won't be that bad. If I get a chance I'll give it a shot. > > btw Interface to HAL might still be useful in general to monitor othe= r device > classes that we may want to automatically assign to the VMs. So I'll = play > around with that too (some day :)). > > Max > > > -- > To unsubscribe from this list: send the line "unsubscribe kvm" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > =20