diff options
| author | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2025-09-23 09:03:59 +0200 |
|---|---|---|
| committer | Michael S. Tsirkin <mst@redhat.com> | 2025-10-04 10:53:38 -0400 |
| commit | b74d843f7bf43f5e7e1e5b9c34da2034d622cf78 (patch) | |
| tree | 5d6af4b75fb3e500020888bd833a0b1b89bed8f8 /include | |
| parent | db16153f196f0ed7560aa138f08e2ef312ecf005 (diff) | |
| download | focaccia-qemu-b74d843f7bf43f5e7e1e5b9c34da2034d622cf78.tar.gz focaccia-qemu-b74d843f7bf43f5e7e1e5b9c34da2034d622cf78.zip | |
acpi/ghes: Use HEST table offsets when preparing GHES records
There are two pointers that are needed during error injection: 1. The start address of the CPER block to be stored; 2. The address of the read ack. It is preferable to calculate them from the HEST table. This allows checking the source ID, the size of the table and the type of the HEST error block structures. Yet, keep the old code, as this is needed for migration purposes from older QEMU versions. Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Reviewed-by: Igor Mammedov <imammedo@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Message-ID: <d4344e8dbe66372e1e093d968eda2e8b0527ba48.1758610789.git.mchehab+huawei@kernel.org> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/hw/acpi/ghes.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/hw/acpi/ghes.h b/include/hw/acpi/ghes.h index ea9baab764..5265102ba5 100644 --- a/include/hw/acpi/ghes.h +++ b/include/hw/acpi/ghes.h @@ -78,7 +78,7 @@ enum { typedef struct AcpiGhesState { uint64_t hest_addr_le; uint64_t hw_error_le; - bool use_hest_addr; /* Currently, always false */ + bool use_hest_addr; /* True if HEST address is present */ } AcpiGhesState; void acpi_build_hest(AcpiGhesState *ags, GArray *table_data, |