qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Re: [PATCH 2/5] husb: support for USB host device auto


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
User-agent: Thunderbird 2.0.0.16 (X11/20080723)

Max Krasnyansky wrote:
Guido Günther wrote:
What about /dev/bus/usb - it supports inotify fine on udev?

Yes it should since it's a regular filesystem.

I was thinking of this too since /proc/bus/usb is deprecated in favor of /dev/bus/usb. If someone was willing to port QEMU to /dev/bus/usb, it 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/<bus_num>/ directory so
we'd have to monitor /dev/bus/usb and dynamically register/unregister monitors
for each /dev/bus/usb/<bus_num>/.
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 other 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 address@hidden
More majordomo info at  http://vger.kernel.org/majordomo-info.html





reply via email to

[Prev in Thread] Current Thread [Next in Thread]