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:29 +0100
committerMichael S. Tsirkin <mst@redhat.com>2019-01-14 19:31:04 -0500
commit569afd8428a5d0d9dab5be60df46920fb277194c (patch)
treebf8efd617423c1fb702b1f55aac2f2fe6c6b7b9b /hw/virtio/virtio-input-pci.c
parentdb5754498878c754a1ea755e726816ee50cbf2c0 (diff)
downloadfocaccia-qemu-569afd8428a5d0d9dab5be60df46920fb277194c.tar.gz
focaccia-qemu-569afd8428a5d0d9dab5be60df46920fb277194c.zip
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>
Diffstat (limited to 'hw/virtio/virtio-input-pci.c')
0 files changed, 0 insertions, 0 deletions