Skip to content
Commit 9ac1c4c0 authored by Michael S. Tsirkin's avatar Michael S. Tsirkin
Browse files

acpi: fix tables for no-hpet configuration



acpi build tried to add offset of hpet table to rsdt even when hpet was
disabled.  If no tables follow hpet, this could lead to a malformed
rsdt.

Fix it up.

To avoid such errors in the future, rearrange code slightly to make it
clear that acpi_add_table stores the offset of the following table - not
of the previous one.

Reported-by: default avatarTeLeMan <geleman@gmail.com>
Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
Cc: qemu-stable@nongnu.org
parent 097a97a6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment