From nobody Tue Mar 3 05:12:31 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=reject dis=none) header.from=citrix.com ARC-Seal: i=1; a=rsa-sha256; t=1772234273; cv=none; d=zohomail.com; s=zohoarc; b=fi1U2N+8iBaRyVwms7bpw6T0RzBxmhSH7YFkiPzcNE2ySXq1DOPT0Wz1wc/M7FnjWBqmhk+ryJ7HdmPj49cbwdN2jVLRhCyTySLY3QXz5SMhWPdpw+Mlgw7VeAWrFsNSfSjDdK8Y/Z99rnvDpRd4RLTUhy6LxwuiCNG6eEbip14= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1772234273; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=15zWx1qA8rFF4HWlAuchK/hb06gvUooknaZohCqKUPM=; b=Rq9DerRnXBo+epF4Z5JR074iH0zT5fHnoLp8PpsXDJrFJqMWknRl6a7XS3yROX+X1tePqHWmdOdX6ccC1unm67FLMVJQwf9CDzcvHrlMMuUOqGFaRNgWTolqWtvfb/sSaYpZH4sk/h8a+CZO7J5d4Soyisv0hDqe8TwJ/Zt1Paw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1772234273119388.0657853928493; Fri, 27 Feb 2026 15:17:53 -0800 (PST) Received: from list by lists.xenproject.org with outflank-mailman.1243232.1543260 (Exim 4.92) (envelope-from ) id 1vw75N-0007S2-Tm; Fri, 27 Feb 2026 23:17:29 +0000 Received: by outflank-mailman (output) from mailman id 1243232.1543260; Fri, 27 Feb 2026 23:17:29 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1vw75N-0007Qw-R3; Fri, 27 Feb 2026 23:17:29 +0000 Received: by outflank-mailman (input) for mailman id 1243232; Fri, 27 Feb 2026 23:17:29 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1vw74t-0001Do-21 for xen-devel@lists.xenproject.org; Fri, 27 Feb 2026 23:16:59 +0000 Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [2a00:1450:4864:20::434]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 68457e39-1432-11f1-9ccf-f158ae23cfc8; Sat, 28 Feb 2026 00:16:55 +0100 (CET) Received: by mail-wr1-x434.google.com with SMTP id ffacd0b85a97d-4398f8e2837so2228203f8f.1 for ; Fri, 27 Feb 2026 15:16:55 -0800 (PST) Received: from localhost.localdomain (host-92-22-18-152.as13285.net. [92.22.18.152]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4399c70e8e8sm9680306f8f.10.2026.02.27.15.16.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Feb 2026 15:16:52 -0800 (PST) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 68457e39-1432-11f1-9ccf-f158ae23cfc8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=citrix.com; s=google; t=1772234215; x=1772839015; darn=lists.xenproject.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=15zWx1qA8rFF4HWlAuchK/hb06gvUooknaZohCqKUPM=; b=gA5HPosuZY0sgr9RKW7vL/IlCwdrJsKS0i2R5ajdi7HQaaTgB5jVqb1PYgC5P1Rq+T ZAHEHOXzouLrhKkjPhAdWcDJ5CLk8u1QXGKuJJEnGn1f/GAFVdLcd3brameTli/IJ6rW C/oyhcPeLzHWSkrbP+8YcnNuVOm8mYuqg1+mM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772234215; x=1772839015; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=15zWx1qA8rFF4HWlAuchK/hb06gvUooknaZohCqKUPM=; b=gPkz2llYAEJtMs8F3OCQtis6W9CC767+rD0yoxQ1ciLcoYObdsFpCGMx+1IqpEx0O0 Luk84Alkoau1rBBxRk0YtRU44JIIm4Nnfj2EyA3U/RAUeRLDKHqU9zjPHYI0jJYslveO uw5pWhuDFY0tAf53q0zrQQKiyWIuxR0MOo+DwVgDHCXn6cxiOYIEE9mXeKm4TyUgHxLJ X8WWdxSOW6BWUA23OYsrUqk/JERcHXK/QBGCMqig2yRhfZvK608g8/1DLhhohRMHxc3j d6Hy2fVf33nnCxtH7Y4ysIxIqDUCs5jugz79L+Bf7+JM0c7Y1Nei3JsSAYpxo4azm61s B8VQ== X-Gm-Message-State: AOJu0YzM3uzxaAEnSyJR1Of4Im9hzqd2bkMpaY1UeKe8oT4OSiLyw1DX hCRsH1a2roj5b/jVGFvHOyWmJxL9Y8JLwHfXyACVlFkWK8vKLFC6VUTNtZ/wNO/Y9CNx0H3bPoO e6XYr X-Gm-Gg: ATEYQzw+p6xljYYIBunjpviBiMAkoh8JYTGzNyTZ+2hqDn5gIcHEgz9i2cl/bb+gelQ grbgK+KI0s6hJ9CaPEJAlVD7x8bXHtCbX3kOHaiyDVEBBHhW2Pfnw4/9pJDzpvAWPISSM0S3s9U R73vvDhrRXtAVPs9H2pDWKC49nbmbKT2fZQ7FgNXh6JxmthFU/AdJLS73U2aNcwaUprhUGZqSqi paycop1BDkNc+FBEQwo35Z6pXQdUDsmxgs0skAvV5Rf2nJCHOArHM7ARlGo9eKVGnEou8981lXW fBAHHEvQSN2rYS427Sn2xVxIa+P3/9GbiTIc3Jbtmj/Y+d5252cmHXvNohuYuY4wO6KZFZ/TG3E yDJqNxfcQlb8fjwDJG4yxDKaxYIHRWwshD5pbAHHzsqRJrdcI4ItKFUw3Ea48xJYWRyVG2osKtw PjuiRrLqELhDO3ytfSy6IjaKdXM6aDsfhJaK0IdyVmbQEh4igasXYtp/HxmQQmFoRN6rtQezU= X-Received: by 2002:a05:6000:603:b0:432:a9db:f9a2 with SMTP id ffacd0b85a97d-4399de2b52amr8236751f8f.41.1772234214125; Fri, 27 Feb 2026 15:16:54 -0800 (PST) From: Andrew Cooper To: Xen-devel Cc: Andrew Cooper , Jan Beulich , =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= Subject: [PATCH v4 14/14] x86/traps: Use fatal_trap() for #UD and #GP Date: Fri, 27 Feb 2026 23:16:36 +0000 Message-Id: <20260227231636.3955109-15-andrew.cooper3@citrix.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20260227231636.3955109-1-andrew.cooper3@citrix.com> References: <20260227231636.3955109-1-andrew.cooper3@citrix.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @citrix.com) X-ZM-MESSAGEID: 1772234274438158500 This renders the diagnostics in a more uniform way. Signed-off-by: Andrew Cooper Acked-by: Jan Beulich --- CC: Jan Beulich CC: Roger Pau Monn=C3=A9 v4: * New PF and CP are more complicated and not converted yet. --- xen/arch/x86/traps.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/xen/arch/x86/traps.c b/xen/arch/x86/traps.c index e2c35a046e6b..c04ab484ad27 100644 --- a/xen/arch/x86/traps.c +++ b/xen/arch/x86/traps.c @@ -1375,8 +1375,7 @@ void asmlinkage do_invalid_op(struct cpu_user_regs *r= egs) if ( likely(extable_fixup(regs, true)) ) return; =20 - show_execution_state(regs); - panic("FATAL TRAP: vector =3D %d (invalid opcode)\n", X86_EXC_UD); + fatal_trap(regs, false); } =20 void asmlinkage do_int3(struct cpu_user_regs *regs) @@ -1475,8 +1474,7 @@ void do_general_protection(struct cpu_user_regs *regs) return; =20 hardware_gp: - show_execution_state(regs); - panic("GENERAL PROTECTION FAULT\n[error_code=3D%04x]\n", regs->error_c= ode); + fatal_trap(regs, false); } =20 #ifdef CONFIG_PV --=20 2.39.5