From: Gavin Shan Date: Mon, 1 Dec 2025 14:18:01 +0000 (+1000) Subject: target/arm/kvm: Exit on error from acpi_ghes_memory_errors() X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0352e85fe5d9233f1a3099eab207b54078a16cb9;p=thirdparty%2Fqemu.git target/arm/kvm: Exit on error from acpi_ghes_memory_errors() A core dump is no sense as there isn't programming bugs related to errors from acpi_ghes_memory_errors(). Exit instead of abort when the function returns errors, and the excessive error message is also dropped. Suggested-by: Igor Mammedov Suggested-by: Markus Armbruster Signed-off-by: Gavin Shan Reviewed-by: Igor Mammedov Reviewed-by: Mauro Carvalho Chehab Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin Message-Id: <20251201141803.2386129-4-gshan@redhat.com> --- diff --git a/target/arm/kvm.c b/target/arm/kvm.c index 0828e8b87b..b83f1d5e4f 100644 --- a/target/arm/kvm.c +++ b/target/arm/kvm.c @@ -2477,8 +2477,7 @@ void kvm_arch_on_sigbus_vcpu(CPUState *c, int code, void *addr) paddr)) { kvm_inject_arm_sea(c); } else { - error_report("failed to record the error"); - abort(); + exit(1); } } return;