[Top][All Lists]
[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: |
Max Krasnyansky |
Subject: |
Re: [Qemu-devel] Re: [PATCH 2/5] husb: support for USB host device auto connect. |
Date: |
Fri, 15 Aug 2008 11:24:50 -0700 |
User-agent: |
Thunderbird 2.0.0.14 (X11/20080501) |
Guido Günther wrote:
> On Thu, Aug 14, 2008 at 03:41:28PM -0500, Anthony Liguori wrote:
>> Max Krasnyansky wrote:
>>>>> 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' ?
>>>
>> Yeah, but I would be a little surprised if /proc/bus/usb supports inotify...
> What about /dev/bus/usb - it supports inotify fine on udev?
Yes it should since it's a regular filesystem.
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
- [Qemu-devel] Re: [PATCH 1/5] husb: support for USB host device auto disconnect., (continued)
- [Qemu-devel] [PATCH 2/5] husb: support for USB host device auto connect., Max Krasnyansky, 2008/08/14
- [Qemu-devel] Re: [PATCH 2/5] husb: support for USB host device auto connect., Anthony Liguori, 2008/08/14
- [Qemu-devel] Re: [PATCH 2/5] husb: support for USB host device auto connect., Max Krasnyansky, 2008/08/14
- [Qemu-devel] Re: [PATCH 2/5] husb: support for USB host device auto connect., Anthony Liguori, 2008/08/14
- [Qemu-devel] Re: [PATCH 2/5] husb: support for USB host device auto connect., Max Krasnyansky, 2008/08/14
- [Qemu-devel] Re: [PATCH 2/5] husb: support for USB host device auto connect., Anthony Liguori, 2008/08/14
- Re: [Qemu-devel] Re: [PATCH 2/5] husb: support for USB host device auto connect., François Revol, 2008/08/14
- Re: [Qemu-devel] Re: [PATCH 2/5] husb: support for USB host device auto connect., Guido Günther, 2008/08/15
- Re: [Qemu-devel] Re: [PATCH 2/5] husb: support for USB host device auto connect.,
Max Krasnyansky <=
- Re: [Qemu-devel] Re: [PATCH 2/5] husb: support for USB host device auto connect., Javier Guerra, 2008/08/15
- Re: [Qemu-devel] Re: [PATCH 2/5] husb: support for USB host device auto connect., Max Krasnyansky, 2008/08/18
- Re: [Qemu-devel] Re: [PATCH 2/5] husb: support for USB host device auto connect., Javier Guerra, 2008/08/18
- Re: [Qemu-devel] Re: [PATCH 2/5] husb: support for USB host device auto connect., Jamie Lokier, 2008/08/18
- Re: [Qemu-devel] Re: [PATCH 2/5] husb: support for USB host device auto connect., Avi Kivity, 2008/08/17
- Re: [Qemu-devel] Re: [PATCH 2/5] husb: support for USB host device auto connect., Max Krasnyansky, 2008/08/18
- Re: [Qemu-devel] Re: [PATCH 2/5] husb: support for USB host device auto connect., Anthony Liguori, 2008/08/18
- Re: [Qemu-devel] Re: [PATCH 2/5] husb: support for USB host device auto connect., Max Krasnyansky, 2008/08/18
[Qemu-devel] [PATCH 3/5] usb: generic packet handler cleanup and documentation, Max Krasnyansky, 2008/08/14
[Qemu-devel] [PATCH 4/5] uhci: rewrite UHCI emulator, fully async operation with multiple outstanding transactions, Max Krasnyansky, 2008/08/14