diff options
| author | Dongjiu Geng <gengdongjiu@huawei.com> | 2020-05-12 11:06:05 +0800 |
|---|---|---|
| committer | Peter Maydell <peter.maydell@linaro.org> | 2020-05-14 15:03:09 +0100 |
| commit | a08a64627b6b5874f3dbf202fb08563e7a74b1ea (patch) | |
| tree | 88f5dcbce32f235c61170401f5d72b0cc695c28c /include/hw/acpi/ghes.h | |
| parent | 205cc75deec196bb3266a0dac407a195a646b5fc (diff) | |
| download | focaccia-qemu-a08a64627b6b5874f3dbf202fb08563e7a74b1ea.tar.gz focaccia-qemu-a08a64627b6b5874f3dbf202fb08563e7a74b1ea.zip | |
ACPI: Record the Generic Error Status Block address
Record the GHEB address via fw_cfg file, when recording a error to CPER, it will use this address to find out Generic Error Data Entries and write the error. In order to avoid migration failure, make hardware error table address to a part of GED device instead of global variable, then this address will be migrated to target QEMU. Acked-by: Xiang Zheng <zhengxiang9@huawei.com> Signed-off-by: Dongjiu Geng <gengdongjiu@huawei.com> Reviewed-by: Igor Mammedov <imammedo@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Message-id: 20200512030609.19593-7-gengdongjiu@huawei.com Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'include/hw/acpi/ghes.h')
| -rw-r--r-- | include/hw/acpi/ghes.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/hw/acpi/ghes.h b/include/hw/acpi/ghes.h index 18debd8cf7..a3420fc9be 100644 --- a/include/hw/acpi/ghes.h +++ b/include/hw/acpi/ghes.h @@ -62,6 +62,12 @@ enum { ACPI_HEST_SRC_ID_RESERVED, }; +typedef struct AcpiGhesState { + uint64_t ghes_addr_le; +} AcpiGhesState; + void build_ghes_error_table(GArray *hardware_errors, BIOSLinker *linker); void acpi_build_hest(GArray *table_data, BIOSLinker *linker); +void acpi_ghes_add_fw_cfg(AcpiGhesState *vms, FWCfgState *s, + GArray *hardware_errors); #endif |