OSDN Git Service

acpi/tests/avocado/bits: enforce 32-bit SMBIOS entry point
authorAni Sinha <anisinha@redhat.com>
Fri, 27 Oct 2023 03:21:18 +0000 (08:51 +0530)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 7 Nov 2023 08:39:11 +0000 (03:39 -0500)
commita874ddc95a2b8b4b6303366c6ac6a2be53c41be4
treec8ab7f4f2be9b8e223323404a792a7dc62e4f577
parent004e3a93b814ca2d13ee2feb1f9ebacef6c83b9e
acpi/tests/avocado/bits: enforce 32-bit SMBIOS entry point

QEMU defaults to 64-bit entry point since the following commit
bf376f3020 ("hw/i386/pc: Default to use SMBIOS 3.0 for newer machine models")
The above change is applicable for all newer machine versions from version 8.1
and newer. i440fx and q35 machine versions 8.0 and older still use 32-bit entry
points.
Unfortunately, bits currently does not recognize 64-bit entry points and hence
is not able to parse SMBIOS tables. Therefore, we need to enforce 32-bit
SMBIOS entry point in QEMU command line so that bits is able to parse the
SMBIOS tables.
Once we implement the support in bits to parse 64-bit entry points, we can
remove the extra command line that is passed to enforce a 32-bit entry point.
The support can be added to the following smbios test script:
tests/avocado/acpi-bits/bits-tests/smbios.py2 in QEMU repository.

CC: jusual@redhat.com
CC: imammedo@redhat.com
Signed-off-by: Ani Sinha <anisinha@redhat.com>
Message-Id: <20231027032120.6012-2-anisinha@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
tests/avocado/acpi-bits.py