]> git.proxmox.com Git - mirror_qemu.git/commit - tests/bios-tables-test.c
tests: acpi: simplify rsdt handling
authorIgor Mammedov <imammedo@redhat.com>
Thu, 27 Dec 2018 14:13:29 +0000 (15:13 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 15 Jan 2019 00:31:04 +0000 (19:31 -0500)
commit569afd8428a5d0d9dab5be60df46920fb277194c
treebf8efd617423c1fb702b1f55aac2f2fe6c6b7b9b
parentdb5754498878c754a1ea755e726816ee50cbf2c0
tests: acpi: simplify rsdt handling

RSDT referenced tables always have length at offset 4 and checksum at
offset 9, that's enough for reusing fetch_table() and replacing custom
RSDT fetching code with it.
While at it
 * merge fetch_rsdt_referenced_tables() into test_acpi_rsdt_table()
 * drop test_data::rsdt_table/rsdt_tables_addr/rsdt_tables_nr since
   we need this data only for duration of test_acpi_rsdt_table() to
   fetch other tables and use locals instead.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Acked-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
tests/bios-tables-test.c