[virt-tools-list] [PATCH] Allow watching for USB devices hotplug and attaching them to VMs
Daniel P. Berrange
berrange at redhat.com
Thu Aug 13 13:52:00 UTC 2009
On Thu, Aug 13, 2009 at 09:43:53AM -0400, Michal Novotny wrote:
> Hi all,
>
> this is the patch to check for the USB device hotplugging, it currently
> allows 2 types of watching for USB device hotplug - using HAL and udev
> itself. There is a plan for DeviceKit support but I am not currently
> having option to make it for DeviceKit so this option will be added in
> time. Nevertheless the HAL and udev implementations are working now
> but you may have to choose the desired type in the Preferences menu.
> UDev type is working by watching for /dev tree changes using pyinotify
> and querying udevadm so if you want to use udev type, you need to have
> pyinotify module installed.
Talking directly to HAL, DeviceKit or sysfs from virt-manager is not
really that nice. virt-manager has done this in the past, but we've
wanted to move all this functionality into libvirt itself, since that's
the only way it will be able to work for remove hypervisors. libvirt
already exposes information about all host USB devices. All that's
missing is an API that notifies you when one is created/deleted, so
you can avoid polling on libvirt all the time.
Regards,
Daniel
--
|: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :|
|: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|
More information about the virt-tools-list
mailing list