Make SMBIOS table pass MS SVVP test
authorKevin O'Connor <kevin@koconnor.net>
Fri, 11 Dec 2009 01:13:57 +0000 (20:13 -0500)
committerKevin O'Connor <kevin@koconnor.net>
Fri, 11 Dec 2009 01:13:57 +0000 (20:13 -0500)
commitcf2affa6de24cd0ceb07adb61c1279674f914c3f
treea142ad4dfcde834bffe026bd76a50aec1c4ae983
parent84f7b801ba8c0806fac568e59e85af281c0df207
Make SMBIOS table pass MS SVVP test

Microsoft SVVP (Server Virtualization Validation Program) expects
arbitrary SMBIOS field to have certain values otherwise it fails.
We all want to make Microsoft happy don't we? So lets put values MS
expects in there.

Values modified by the patch:
 Type 0:
  Bit 2 of byte 2 must be 1
 Type 1:
  Manufacturer/product string should not be empty
 Type 3:
  Manufacturer string should not be empty
 Type 4:
  Processor manufacturer should no be empty
  Max/current CPU speed shouldn't be unknown
 Type 16:
  Memory should have error correction.

---

v1->v2:
 Use CONFIG_APPNAME instead of open coding strings
 Use snprintf.

Signed-off-by: Gleb Natapov <gleb@redhat.com>
src/smbios.c