]> xenbits.xensource.com Git - libvirt.git/commit
On systems with dmidecode version 2.10 or older,
authorPrerna Saxena <prerna@linux.vnet.ibm.com>
Tue, 7 Feb 2012 11:35:37 +0000 (17:05 +0530)
committerEric Blake <eblake@redhat.com>
Tue, 7 Feb 2012 21:45:22 +0000 (14:45 -0700)
commita76530c9c7ac6b0fb67ef15c28fec1976d3ca64b
treef90e59df07249fcf41c578726c2a7a6e799963a3
parent0ed86cfb514fea6d6c6182fec86a632ff0fa3062
On systems with dmidecode version 2.10 or older,

 dmidecode displays processor information, followed by BIOS, system and
 memory-DIMM details.
 Calls to virSysinfoParseBIOS(), virSysinfoParseSystem() would update
 the buffer pointer 'base', so the processor information would be lost
 before virSysinfoParseProcessor() was called. Sysinfo would therefore
 not be able to display processor details -- It only described <bios>,
 <system> and <memory_device> details.
 This patch attempts to insulate sysinfo from ordering of dmidecode
 output.

Before the fix:
---------------
virsh # sysinfo
<sysinfo type='smbios'>
  <bios>
    ....
  </bios>
  <system>
    ....
  </system>
  <memory_device>
    ....
  </memory_device>

After the fix:
-------------
virsh # sysinfo
<sysinfo type='smbios'>
  <bios>
    ....
  </bios>
  <system>
    ....
  </system>
  <processor>
    ....
  </processor>
  <memory_device>
    ....
  </memory_device>
src/util/sysinfo.c