kvm: bios: Fix multiple calls into smbios_load_ex
commit9370161efa72c0653e339330b31fd570ad640e87
authorAlex Williamson <alex.williamson@hp.com>
Tue, 28 Jul 2009 16:46:42 +0000 (28 19:46 +0300)
committerAvi Kivity <avi@redhat.com>
Tue, 28 Jul 2009 16:46:42 +0000 (28 19:46 +0300)
tree4c15bfb02bafc2211afba14ccb91f7ba02b3100d
parentc9d944213ce2328e7fc3c980ab7311ad351a78dd
kvm: bios: Fix multiple calls into smbios_load_ex

We're marking the used entry bitmap in smbios_load_external() for each
type we check, regardless of whether we loaded anything.  This makes
subsequent calls behave as if we've already loaded the tables from qemu
and can result in missing tables (ex. multiple type4 entries on an SMP
guest).  Only mark the bitmap if we actually load something.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
kvm/bios/rombios32.c