From nobody Sun Jul 26 12:29:00 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1782142999657489.2440805510389; Mon, 22 Jun 2026 08:43:19 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1wbgnq-00062C-Qa; Mon, 22 Jun 2026 11:43:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1wbfrT-0006g7-9w for qemu-devel@nongnu.org; Mon, 22 Jun 2026 10:42:55 -0400 Received: from mail-pl1-f171.google.com ([209.85.214.171]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1wbfrR-0002W7-Fi for qemu-devel@nongnu.org; Mon, 22 Jun 2026 10:42:55 -0400 Received: by mail-pl1-f171.google.com with SMTP id d9443c01a7336-2c0c1e0b0faso28468295ad.0 for ; Mon, 22 Jun 2026 07:42:53 -0700 (PDT) Received: from localhost.localdomain ([1.213.237.162]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2c7439f8cfbsm78955285ad.45.2026.06.22.07.42.49 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 22 Jun 2026 07:42:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782139372; x=1782744172; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=yLCOumI8x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ECoz9eYFQ4DlVEh9Nkot04EObE3dKpq75QQ== X-Received: by 2002:a17:903:ac7:b0:2c7:9b17:668d with SMTP id d9443c01a7336-2c79b176c3cmr39962755ad.2.1782139372004; Mon, 22 Jun 2026 07:42:52 -0700 (PDT) From: Leesoo Ahn To: agraf@csgraf.de, peter.maydell@linaro.org Cc: qemu-arm@nongnu.org, qemu-devel@nongnu.org, Leesoo Ahn Subject: [PATCH] arm/hvf: panic the guest if an unhandled exception occurs in el1 Date: Mon, 22 Jun 2026 23:42:45 +0900 Message-ID: <20260622144245.55013-1-lsahn@ooseel.net> X-Mailer: git-send-email 2.50.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=209.85.214.171; envelope-from=yisooan.dev@gmail.com; helo=mail-pl1-f171.google.com X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 22 Jun 2026 11:43:04 -0400 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZM-MESSAGEID: 1782143000982158500 Content-Type: text/plain; charset="utf-8" It's better to clean up any resources that the guest taking and quit if an exception in el1 could not be resolved. Otherwise, the guest would get in the infinite-loop black-hole by unmodified pc. Signed-off-by: Leesoo Ahn --- target/arm/hvf/hvf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/target/arm/hvf/hvf.c b/target/arm/hvf/hvf.c index 8b902c6882..4358cf90e8 100644 --- a/target/arm/hvf/hvf.c +++ b/target/arm/hvf/hvf.c @@ -2533,6 +2533,7 @@ static int hvf_handle_exception(CPUState *cpu, hv_vcp= u_exit_exception_t *excp) cpu_synchronize_state(cpu); trace_hvf_exit(syndrome, ec, env->pc); error_report("0x%llx: unhandled exception ec=3D0x%x", env->pc, ec); + qemu_system_guest_panicked(cpu_get_crash_info(cpu)); } =20 /* flush any changed cpu state back to HVF */ --=20 2.50.1 (Apple Git-155)