summary refs log tree commit diff stats
path: root/hw/virtio/virtio-input-pci.c
diff options
context:
space:
mode:
authorIgor Mammedov <imammedo@redhat.com>2018-12-27 15:13:28 +0100
committerMichael S. Tsirkin <mst@redhat.com>2019-01-14 19:31:04 -0500
commitdb5754498878c754a1ea755e726816ee50cbf2c0 (patch)
treedfc123313d997d8aca2bfbaa90e8ee99c2452bb0 /hw/virtio/virtio-input-pci.c
parent81eb530db4ce24b7cc3cd8303505a8053ee1b6cc (diff)
downloadfocaccia-qemu-db5754498878c754a1ea755e726816ee50cbf2c0.tar.gz
focaccia-qemu-db5754498878c754a1ea755e726816ee50cbf2c0.zip
tests: acpi: make sure FADT is fetched only once
Whole FADT is fetched as part of RSDT referenced tables in
fetch_rsdt_referenced_tables() albeit a bit later than when FADT
is partially parsed in fadt_fetch_facs_and_dsdt_ptrs().
However there is no reason for calling fetch_rsdt_referenced_tables()
so late, just move it right after we fetched RSDT and before
fadt_fetch_facs_and_dsdt_ptrs(). That way we can reuse whole FADT
fetched by fetch_rsdt_referenced_tables() and avoid duplicate
custom fields fetching in fadt_fetch_facs_and_dsdt_ptrs().

While at it rename fadt_fetch_facs_and_dsdt_ptrs() to
test_acpi_fadt_table(). The follow up patch will merge
fadt_fetch_facs_and_dsdt_ptrs() into test_acpi_rsdt_table(),
so that we would end up calling only test_acpi_FOO_table()
for consistency for tables that require special processing.

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>
Diffstat (limited to 'hw/virtio/virtio-input-pci.c')
0 files changed, 0 insertions, 0 deletions