]> git.proxmox.com Git - mirror_qemu.git/commit - tests/bios-tables-test.c
tests: smbios: fetch whole table in one step instead of reading it step by step
authorIgor Mammedov <imammedo@redhat.com>
Thu, 27 Dec 2018 14:13:32 +0000 (15:13 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 18 Jan 2019 02:10:57 +0000 (21:10 -0500)
commit3314778d8834a9c446b14b340dbb0fdf07d01975
treefafe2e98175f46b81d0be1267b9207723b3a55cc
parentacee774b3dbeb7fcd294b1f96c1a286d39d9b495
tests: smbios: fetch whole table in one step instead of reading it step by step

replace a bunch of ACPI_READ_ARRAY/ACPI_READ_FIELD macro, that read
SMBIOS table field by field with one memread() to fetch whole table
at once and drop no longer used ACPI_READ_ARRAY/ACPI_READ_FIELD macro.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Acked-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
tests/acpi-utils.h
tests/bios-tables-test.c