This series of patches implements the following:
Patch 1/2 : Implement sysinfo for PowerPC. OnPowerPC, sysinfo is
obtained by reading /proc/cpuinfo since dmidecode is not available.
Patch 2/2 : Based on Eric's suggestion
(
http://www.redhat.com/archives/libvir-list/2012-February/msg00509.html)
Allow x86 to read host system's processor information from
/proc/cpuinfo in the event dmidecode is not available.
Changelog :
-----------
v1->v2 :
* Rebased and cleanups done.
v2->v3:
* Patch 1/2 : rebased.
* Patch 2/2 : As reported by Daniel, it was found that 'dmidecode'
lists socket (and not core-level) information under the <processor>
XML tag. The /proc/cpuinfo fallback is also accordingly modified to
display a listing of the available sockets under the '<processor>'
XML tag under sysinfo.
(
http://www.spinics.net/linux/fedora/libvir/msg53922.html)
Thanks,
--
Prerna Saxena
Linux Technology Centre,
IBM Systems and Technology Lab,
Bangalore, India