summaryrefslogtreecommitdiffstats
path: root/linux-user
diff options
context:
space:
mode:
authorIgor Mammedov2018-12-27 15:13:30 +0100
committerMichael S. Tsirkin2019-01-15 01:31:04 +0100
commit59f9c6cc014309cde537842af2104b2f9956b0d6 (patch)
tree18caa8c90028cf36d883b0f304bf2889d1f43841 /linux-user
parenttests: acpi: simplify rsdt handling (diff)
downloadqemu-59f9c6cc014309cde537842af2104b2f9956b0d6.tar.gz
qemu-59f9c6cc014309cde537842af2104b2f9956b0d6.tar.xz
qemu-59f9c6cc014309cde537842af2104b2f9956b0d6.zip
tests: acpi: reuse fetch_table() for fetching FACS and DSDT
It allows to remove a bit more of code duplication and reuse common utility to get ACPI tables from guest (modulo RSDP). While at it, consolidate signature checking into fetch_table() instead of open-codding it. Considering FACS is special and doesn't have checksum, make checksum validation optin, the same goes for signature verification. PS: By pure accident, patch also fixes FACS not being tested against reference table since it wasn't added to data::tables list. But we managed not to regress it since reference file was added by commit (d25979380 acpi unit-test: add test files) back in 2013 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 'linux-user')
0 files changed, 0 insertions, 0 deletions