ACPI: Build related register address fields via hardware error fw_cfg blob
commitaa16508f1d1bce2411fdbe82aa20e559bbd90e48
authorDongjiu Geng <gengdongjiu@huawei.com>
Tue, 12 May 2020 03:06:03 +0000 (12 11:06 +0800)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 14 May 2020 14:03:09 +0000 (14 15:03 +0100)
treec89db94afe96911b7ef22392fd1b551bbbc77638
parent5fb004a2650dde16ac41b7ee801fc30961524821
ACPI: Build related register address fields via hardware error fw_cfg blob

This patch builds error_block_address and read_ack_register fields
in hardware errors table , the error_block_address points to Generic
Error Status Block(GESB) via bios_linker. The max size for one GESB
is 1kb, For more detailed information, please refer to
document: docs/specs/acpi_hest_ghes.rst

Now we only support one Error source, if necessary, we can extend to
support more.

Suggested-by: Laszlo Ersek <lersek@redhat.com>
Signed-off-by: Xiang Zheng <zhengxiang9@huawei.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Dongjiu Geng <gengdongjiu@huawei.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Message-id: 20200512030609.19593-5-gengdongjiu@huawei.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
default-configs/arm-softmmu.mak
hw/acpi/Kconfig
hw/acpi/Makefile.objs
hw/acpi/aml-build.c
hw/acpi/ghes.c [new file with mode: 0644]
hw/arm/virt-acpi-build.c
include/hw/acpi/aml-build.h
include/hw/acpi/ghes.h [new file with mode: 0644]