acpi: Fix table length for QEMU
authorIlias Apalodimas <ilias.apalodimas@linaro.org>
Thu, 3 Apr 2025 05:34:44 +0000 (08:34 +0300)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Thu, 3 Apr 2025 06:58:27 +0000 (08:58 +0200)
commit37a33d326e104ad725bcf127d3ffc59a5f9d58e6
tree6f5cb8079468a9bef3b772ac6b3c41a50b709791
parentc17f03a7e93dfbbe5d32f5738274187065d9493f
acpi: Fix table length for QEMU

The end of the ACPI table is set to 'addr' instead of 'end'. The ACPI
code for QEMU relies on those values to mark memory as 'ACPI Reclaim'
and as a result the ACPI RSDP ends up in Boot services Data.

Reported-by: Björn Töpel <bjorn@kernel.org>
Fixes: commit 638cc363484b ("acpi: enable writing ACPI tables on QEMU")
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
drivers/misc/qfw_acpi.c