From nobody Thu Oct 30 22:56:29 2025 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 ARC-Seal: i=1; a=rsa-sha256; t=1756509726; cv=none; d=zohomail.com; s=zohoarc; b=ZF7kQrW7jsBFrINlNOLTG2tFbsXpJoY7S4jpCAJk3ud4H8kyRmAHqy8X878mDdbJrkiPgWI5pe8p097LLKEh2nOg7oPysVdmqsowwiwdoA2I7g9az7nwBzfUvQdyqKqEJYr4qDDerTR+Szli0y2IovcdXbguX+uvofds/3wnP0I= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1756509726; h=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=0GmDSgvSiD58ApKqQGJhpDyJ1WxaAGOscgx5s5jqTIg=; b=X7mZtup72zh/3gG/gxvPE3KSNPltRK3MRrxRGedn4w1fohpJFYzcjKtmqHzBCmqq7B681c9KQCtwKblf69A3c0wuEZbic3gr8MVAr2tT3NnCniaznFX1neL/JDm3Z92F/QTW1AkSJldjjh5XBJ3ZsUlKDtncTPTSbuoJjL0Qm1Q= 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 Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1756509726538822.4264085253346; Fri, 29 Aug 2025 16:22:06 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.1102360.1455013 (Exim 4.92) (envelope-from ) id 1us8Pf-00007E-SC; Fri, 29 Aug 2025 23:21:43 +0000 Received: by outflank-mailman (output) from mailman id 1102360.1455013; Fri, 29 Aug 2025 23:21:43 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1us8Pf-000072-Ob; Fri, 29 Aug 2025 23:21:43 +0000 Received: by outflank-mailman (input) for mailman id 1102360; Fri, 29 Aug 2025 23:21:42 +0000 Received: from mail.xenproject.org ([104.130.215.37]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1us8Pe-0008Ho-AC for xen-devel@lists.xenproject.org; Fri, 29 Aug 2025 23:21:42 +0000 Received: from xenbits.xenproject.org ([104.239.192.120]) by mail.xenproject.org with esmtp (Exim 4.96) (envelope-from ) id 1us8Pd-00CpQs-1a; Fri, 29 Aug 2025 23:21:41 +0000 Received: from [19.12.91.86] (helo=localhost) by xenbits.xenproject.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1us8Pd-008JlV-1J; Fri, 29 Aug 2025 23:21:41 +0000 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" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=xen.org; s=20200302mail; h=Content-Transfer-Encoding:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:Cc:To:From; bh=0GmDSgvSiD58ApKqQGJhpDyJ1WxaAGOscgx5s5jqTIg=; b=IK5ZwYuPAia+W1B5rTGUKWuMeB q4UuwOAtAl9yeWTiNaFqDBSY7ybff8R0oZv+PphIe6imWQGquStVZJxuSQM2doNJOeYdo8ayC7reV PlvjGxjeer1PyaLcaPF2w1x1fSCVEcKQqijnh3pvWRel/uJkWeqfhr1Rtkw5BFjEYIsY=; From: dmukhin@xen.org To: xen-devel@lists.xenproject.org Cc: andrew.cooper3@citrix.com, anthony.perard@vates.tech, jbeulich@suse.com, julien@xen.org, michal.orzel@amd.com, roger.pau@citrix.com, sstabellini@kernel.org, dmukhin@ford.com, Alejandro Vallejo , Julien Grall Subject: [PATCH v17 4/4] xen/domain: update create_dom0() messages Date: Fri, 29 Aug 2025 16:21:32 -0700 Message-ID: <20250829232132.3460081-5-dmukhin@ford.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20250829232132.3460081-1-dmukhin@ford.com> References: <20250829232132.3460081-1-dmukhin@ford.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @xen.org) X-ZM-MESSAGEID: 1756509728013116600 Content-Type: text/plain; charset="utf-8" From: Denis Mukhin =20 Use %pd for domain identification in error/panic messages in create_dom0(). No functional change. Signed-off-by: Denis Mukhin Reviewed-by: Alejandro Vallejo Acked-by: Jan Beulich Reviewed-by: Julien Grall --- Changes since v16: - n/a --- xen/arch/arm/domain_build.c | 6 +++--- xen/arch/x86/setup.c | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/xen/arch/arm/domain_build.c b/xen/arch/arm/domain_build.c index aca35b8961d6..670f634b8b0d 100644 --- a/xen/arch/arm/domain_build.c +++ b/xen/arch/arm/domain_build.c @@ -2084,14 +2084,14 @@ void __init create_dom0(void) panic("Error creating domain 0 (rc =3D %ld)\n", PTR_ERR(dom0)); =20 if ( llc_coloring_enabled && (rc =3D dom0_set_llc_colors(dom0)) ) - panic("Error initializing LLC coloring for domain 0 (rc =3D %d)\n"= , rc); + panic("Error initializing LLC coloring for %pd (rc =3D %d)\n", dom= 0, rc); =20 if ( vcpu_create(dom0, 0) =3D=3D NULL ) - panic("Error creating domain 0 vcpu0\n"); + panic("Error creating %pdv0\n", dom0); =20 rc =3D construct_dom0(dom0); if ( rc ) - panic("Could not set up DOM0 guest OS (rc =3D %d)\n", rc); + panic("Could not set up %pd guest OS (rc =3D %d)\n", dom0, rc); =20 set_xs_domain(dom0); } diff --git a/xen/arch/x86/setup.c b/xen/arch/x86/setup.c index 78e24b78c5a6..da1fe8fdb6dd 100644 --- a/xen/arch/x86/setup.c +++ b/xen/arch/x86/setup.c @@ -1075,7 +1075,7 @@ static struct domain *__init create_dom0(struct boot_= info *bi) =20 if ( (strlen(acpi_param) =3D=3D 0) && acpi_disabled ) { - printk("ACPI is disabled, notifying Domain 0 (acpi=3Doff)\n"); + printk("ACPI is disabled, notifying %pd (acpi=3Doff)\n", d); safe_strcpy(acpi_param, "off"); } =20 @@ -1090,7 +1090,7 @@ static struct domain *__init create_dom0(struct boot_= info *bi) =20 bd->d =3D d; if ( construct_dom0(bd) !=3D 0 ) - panic("Could not construct domain 0\n"); + panic("Could not construct %pd\n", d); =20 bd->cmdline =3D NULL; xfree(cmdline); --=20 2.51.0