]> git.proxmox.com Git - mirror_qemu.git/commit - tests/bios-tables-test.c
bios-tables-test: handle false-positive smbios signature matches
authorGabriel L. Somlo <somlo@cmu.edu>
Mon, 18 May 2015 12:47:24 +0000 (08:47 -0400)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 10 Jun 2015 06:06:47 +0000 (08:06 +0200)
commit5efed5a172881f601ac3c57c22ec5c5721f895be
tree3f90c21d2711d585f8eef38ad31a2b96570dc4cd
parent81b2b81062612ebeac4cd5333a3b15c7d79a5a3d
bios-tables-test: handle false-positive smbios signature matches

It has been reported that sometimes the .rodata section of SeaBIOS,
containing the constant string against which the SMBIOS signature
ends up being compared, also falls within the guest f-segment. In
that case, the test obviously fails, unless we continue searching
for the *real* SMBIOS entry point.

Rather than stopping at the first match for the SMBIOS signature
("_SM_") in the f-segment (0xF0000-0xFFFFF), continue scanning
until either a valid entry point table is found, or the f-segment
has been exhausted.

Reported-by: Bruce Rogers <brogers@suse.com>
Signed-off-by: Gabriel Somlo <somlo@cmu.edu>
Tested-by: Bruce Rogers <brogers@suse.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
tests/bios-tables-test.c