tests: acpi: make acpi_fetch_table() take size of fetched table pointer
commit4b14d543f3338985fd9c74ae6f6a6d3861c841dd
authorIgor Mammedov <imammedo@redhat.com>
Thu, 2 May 2019 14:51:50 +0000 (2 16:51 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 20 May 2019 22:40:02 +0000 (20 18:40 -0400)
tree646d60303735f369187ea216f159faede2b90f28
parent38fb3d7100b871eef3237cba2e4e1fed56d2bd1f
tests: acpi: make acpi_fetch_table() take size of fetched table pointer

Currently acpi_fetch_table() assumes 32 bit size of table pointer
in ACPI tables. However X_foo variants are 64 bit, prepare
acpi_fetch_table() to handle both by adding an argument
for addr_ptr pointed entry size. Follow up commits will use that
to read XSDT and X_foo entries in ACPI tables.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Message-Id: <1556808723-226478-3-git-send-email-imammedo@redhat.com>
Reviewed-by: Wei Yang <richardw.yang@linux.intel.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
tests/acpi-utils.c
tests/acpi-utils.h
tests/bios-tables-test.c
tests/vmgenid-test.c