[libvirt] About node device enumeration problem

Hi all, I saw two sets of node device enumeration implementation in libvirt-0.7.4 source code: 1.libudev implementation 2.HAL-based implementation I want to know which kind is used in libvirt.if both are used, which kinds solution is better? in my opinion,their abstract layer is different,HAL-based implementation may be flexible, by contrast, libudev implementation may be with better performance.whether plan to merge them or reserve a kind of implementation? thank you very much.I would be most grateful for any response . Best Regards, Alex Jia

On Fri, Nov 27, 2009 at 06:03:30PM +0800, ajia wrote:
Hi all, I saw two sets of node device enumeration implementation in libvirt-0.7.4 source code: 1.libudev implementation 2.HAL-based implementation
I want to know which kind is used in libvirt.if both are used, which kinds solution is better?
Depends on the host OS. For Fedora 12 and RHEL-6 , then libvirt if 0.7.4 or later will be compiled with udev. If not it will fallback to hal It's more a question of what method s supported on the host OS rather than picking one or the other, libvirt will just use the preferred method. Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ daniel@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org/

On Fri, Nov 27, 2009 at 01:46:40PM +0100, Daniel Veillard wrote:
On Fri, Nov 27, 2009 at 06:03:30PM +0800, ajia wrote:
Hi all, I saw two sets of node device enumeration implementation in libvirt-0.7.4 source code: 1.libudev implementation 2.HAL-based implementation
I want to know which kind is used in libvirt.if both are used, which kinds solution is better?
Depends on the host OS. For Fedora 12 and RHEL-6 , then libvirt if 0.7.4 or later will be compiled with udev. If not it will fallback to hal
It's more a question of what method s supported on the host OS rather than picking one or the other, libvirt will just use the preferred method.
The reason for the switch is that HAL has been deprecated as of Fedora 12, with udev being the recommended replacement. Hence libvirt has been updted to follow recommended practice in new enough distros. 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 :|
participants (3)
-
ajia
-
Daniel P. Berrange
-
Daniel Veillard