resolve memory device roll over reporting issues with >32G guests
authorKevin O'Connor <kevin@koconnor.net>
Wed, 7 Oct 2009 23:44:23 +0000 (19:44 -0400)
committerKevin O'Connor <kevin@koconnor.net>
Wed, 7 Oct 2009 23:44:23 +0000 (19:44 -0400)
commit2a3dfea751feba22dafff7b8d8b20c1f75cc0389
tree2d6343fd78af476824b8511176ced7d85567cff5
parenta9242a2afb8865610cc359af118404f24decec37
resolve memory device roll over reporting issues with >32G guests

The field within the Memory Device type 17 is only a word with the MSB being
used to report MB/KB.  Thereby, a guest with 32G and greater would report
incorrect memory device information rolling over to 0.

This presents more than one memory device and associated memory structures
if the memory is larger than 16G

This is port of commit e65bb0d2bd3a156408996674965555979de3a61b
from qemu pc-bios tree.

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