Use error_fatal in acpi_ghes_memory_errors() so that the caller needn't explicitly call exit(). The return value of acpi_ghes_memory_errors() and ghes_record_cper_errors() is changed to 'bool' indicating an error has been raised, to be compatible with what's documented in error.h. Suggested-by: Igor Mammedov <imammedo@redhat.com> Suggested-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Gavin Shan <gshan@redhat.com> Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Igor Mammedov <imammedo@redhat.com> Reviewed-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Message-Id: <20251201141803.2386129-6-gshan@redhat.com>
24 lines
550 B
C
24 lines
550 B
C
/*
|
|
* Support for generating APEI tables and recording CPER for Guests:
|
|
* stub functions.
|
|
*
|
|
* Copyright (c) 2021 Linaro, Ltd
|
|
*
|
|
* This work is licensed under the terms of the GNU GPL, version 2 or later.
|
|
* See the COPYING file in the top-level directory.
|
|
*/
|
|
|
|
#include "qemu/osdep.h"
|
|
#include "hw/acpi/ghes.h"
|
|
|
|
bool acpi_ghes_memory_errors(AcpiGhesState *ags, uint16_t source_id,
|
|
uint64_t physical_address, Error **errp)
|
|
{
|
|
g_assert_not_reached();
|
|
}
|
|
|
|
AcpiGhesState *acpi_ghes_get_state(void)
|
|
{
|
|
return NULL;
|
|
}
|