[libvirt] [PATCH 1/2] Implement sysinfo on PowerPC.

Daniel P. Berrange berrange at redhat.com
Tue Feb 28 19:57:26 UTC 2012


On Thu, Feb 16, 2012 at 05:56:22PM +0530, Prerna wrote:
> From: Prerna Saxena <prerna at linux.vnet.ibm.com>
> Date: Tue, 17 Feb 2012 16:55:26 +0530
> Subject: [PATCH 1/2] Implement sysinfo on PowerPC.
> 
> Libvirt on x86 parses 'dmidecode' to gather characteristics of host
> system, which are then reflected to libvirt users by virSysinfoRead(),
> invoked by 'virsh sysinfo'.
> This patch implements it on PowerPC by reading /proc/cpuinfo.
> 
> The presently available fields in 'sysinfo' are strongly tied to
> dmidecode output fields. This patch attempts to retrofit the
> information available in PowerPC to appropriate sysinfo fields. I will
> be happy to change the organization of this information to if there
> are expected outputs for individual fields. (I couldnt find any
> documentation which explained what each sysinfo field was expected
> to convey.)
> 
> TODOS:
> 1. Adding Memory DIMM information
> 2) Firmware (<bios>) details.
> 3) Expand <processor> tag to have more fields available.
> 
> Example output on PowerPC :
> virsh # sysinfo
> <sysinfo type='smbios'>
>   <system>
>     <entry name='version'>PowerNV 8246-L2C</entry>
>     <entry name='serial'>8246-L2C</entry>
>     <entry name='family'>PowerNV</entry>
>   </system>
>   <processor>
>     <entry name='socket_destination'>0</entry>
>     <entry name='type'>POWER7 (raw), altivec supported</entry>
>     <entry name='version'>2.3 (pvr 003f 0203)</entry>
>   </processor>
>   <processor>
>     <entry name='socket_destination'>4</entry>
>     <entry name='type'>POWER7 (raw), altivec supported</entry>
>     <entry name='version'>2.3 (pvr 003f 0203)</entry>
>   </processor>
>   ......
> 

ACK


Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|




More information about the libvir-list mailing list