Skip to content

Commit d32028a

Browse files
mchehabmstsirkin
authored andcommitted
acpi/ghes: better name GHES memory error function
The current function used to generate GHES data is specific for memory errors. Give a better name for it, as we now have a generic function as well. Reviewed-by: Igor Mammedov <[email protected]> Reviewed-by: Jonathan Cameron <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]> Message-Id: <35b59121129d5e99cb5062cc3d775594bbb0905b.1736945236.git.mchehab+huawei@kernel.org> Reviewed-by: Michael S. Tsirkin <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]>
1 parent 48b0dcd commit d32028a

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

hw/acpi/ghes-stub.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#include "qemu/osdep.h"
1212
#include "hw/acpi/ghes.h"
1313

14-
int acpi_ghes_record_errors(uint16_t source_id, uint64_t physical_address)
14+
int acpi_ghes_memory_errors(uint16_t source_id, uint64_t physical_address)
1515
{
1616
return -1;
1717
}

hw/acpi/ghes.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ void ghes_record_cper_errors(const void *cper, size_t len,
415415
return;
416416
}
417417

418-
int acpi_ghes_record_errors(uint16_t source_id, uint64_t physical_address)
418+
int acpi_ghes_memory_errors(uint16_t source_id, uint64_t physical_address)
419419
{
420420
/* Memory Error Section Type */
421421
const uint8_t guid[] =

include/hw/acpi/ghes.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,15 @@ void acpi_build_hest(GArray *table_data, GArray *hardware_errors,
7474
const char *oem_id, const char *oem_table_id);
7575
void acpi_ghes_add_fw_cfg(AcpiGhesState *vms, FWCfgState *s,
7676
GArray *hardware_errors);
77+
int acpi_ghes_memory_errors(uint16_t source_id, uint64_t error_physical_addr);
7778
void ghes_record_cper_errors(const void *cper, size_t len,
7879
uint16_t source_id, Error **errp);
79-
int acpi_ghes_record_errors(uint16_t source_id, uint64_t error_physical_addr);
8080

8181
/**
8282
* acpi_ghes_present: Report whether ACPI GHES table is present
8383
*
8484
* Returns: true if the system has an ACPI GHES table and it is
85-
* safe to call acpi_ghes_record_errors() to record a memory error.
85+
* safe to call acpi_ghes_memory_errors() to record a memory error.
8686
*/
8787
bool acpi_ghes_present(void);
8888
#endif

target/arm/kvm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2387,7 +2387,7 @@ void kvm_arch_on_sigbus_vcpu(CPUState *c, int code, void *addr)
23872387
*/
23882388
if (code == BUS_MCEERR_AR) {
23892389
kvm_cpu_synchronize_state(c);
2390-
if (!acpi_ghes_record_errors(ACPI_HEST_SRC_ID_SEA, paddr)) {
2390+
if (!acpi_ghes_memory_errors(ACPI_HEST_SRC_ID_SEA, paddr)) {
23912391
kvm_inject_arm_sea(c);
23922392
} else {
23932393
error_report("failed to record the error");

0 commit comments

Comments
 (0)