From nobody Fri Oct 31 11:33:46 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; dmarc=pass(p=quarantine dis=none) header.from=proton.me ARC-Seal: i=1; a=rsa-sha256; t=1750703308; cv=none; d=zohomail.com; s=zohoarc; b=XKCD+XvY6zpQxq/wMydGor972vxjPF0aVr199CZfzJZmK8G58OLTacmP6OheohCEgncHxZmpwZNHn74XiFzmxR1102A+13tnPGr9ROfBBljDWygFMcSk5Tp/IOsgGy+stRJwrRU050LVqXpi8toPATF2Y+BAtYyqYHx86J8wMuI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1750703308; 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=koB+Pvq4aT3GTen+IwSnn3j1ioEvBKt7OHrxH//L4u4=; b=SEOX10NRfBspvnWagTZ5Hjr9OjkvbIC9Hy+2hJdRlJpKtGJxcFqt7CjAxmG3yD3ET5EaFXcwZIG8LfEVN5+Ogx3zmKjPKBiCT2c8sRxocKgY4jHZe47uaUK88o69ySuImXA3lUYvsuNDeZWvHUgBqO69teNrRXLL/xbvXeoFCZk= 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=quarantine dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1750703308172533.0286771970547; Mon, 23 Jun 2025 11:28:28 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.1022625.1398454 (Exim 4.92) (envelope-from ) id 1uTlts-0006g7-4j; Mon, 23 Jun 2025 18:28:12 +0000 Received: by outflank-mailman (output) from mailman id 1022625.1398454; Mon, 23 Jun 2025 18:28:12 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1uTlts-0006g0-0N; Mon, 23 Jun 2025 18:28:12 +0000 Received: by outflank-mailman (input) for mailman id 1022625; Mon, 23 Jun 2025 18:28:11 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1uTltr-00068u-0n for xen-devel@lists.xenproject.org; Mon, 23 Jun 2025 18:28:11 +0000 Received: from mail-10629.protonmail.ch (mail-10629.protonmail.ch [79.135.106.29]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id d0bbcd0a-505f-11f0-a30f-13f23c93f187; Mon, 23 Jun 2025 20:28:10 +0200 (CEST) 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: d0bbcd0a-505f-11f0-a30f-13f23c93f187 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proton.me; s=protonmail; t=1750703288; x=1750962488; bh=koB+Pvq4aT3GTen+IwSnn3j1ioEvBKt7OHrxH//L4u4=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=Jvj2FO94Cl2vBjFve4VcxT1V0yJH3hS/oFzeBDzl1Ks8lnOncEC0r0cIVeKX6N2bQ oHp4aXnLF8hpx71cMGaw6cXWJtVAsz631q+JCSBhSgw1BR64bXwUXZ3GDTOqkkALo/ rDiu3FWgBojnjwHpsn7qjAI9Hu21fS++UPnFhw1zNXCXzM/lur4mhOt9C/HzI76CCV D9Wi5eWM6YtiIlRwJwqN28KBCx5q3kxwxqi5zTzHOwOixPGVEGmZlkHfNjk8Fcp51c 3ufyjRktJVZfbTXYZBacNydSIt6sXL0P1wSYPtSATGot2Ti+EvGYgWnNaqql6K94+H ejkvzw+BsY3/A== Date: Mon, 23 Jun 2025 18:28:06 +0000 To: xen-devel@lists.xenproject.org From: dmkhn@proton.me 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 Subject: [PATCH v10 2/3] xen/domain: update create_dom0() messages Message-ID: <20250623182721.194238-3-dmukhin@ford.com> In-Reply-To: <20250623182721.194238-1-dmukhin@ford.com> References: <20250623182721.194238-1-dmukhin@ford.com> Feedback-ID: 123220910:user:proton X-Pm-Message-ID: dd797a6c066bda0250210592555991ff73fdfe6b MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @proton.me) X-ZM-MESSAGEID: 1750703309017116600 Content-Type: text/plain; charset="utf-8" From: Denis Mukhin Use %pd for domain identification in error/panic messages in create_dom0(). No functional change. Signed-off-by: Denis Mukhin --- Changes since v9: - new patch --- xen/arch/arm/domain_build.c | 8 ++++---- xen/arch/x86/setup.c | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/xen/arch/arm/domain_build.c b/xen/arch/arm/domain_build.c index 9fa5143eb98c..b59b56636920 100644 --- a/xen/arch/arm/domain_build.c +++ b/xen/arch/arm/domain_build.c @@ -2080,17 +2080,17 @@ void __init create_dom0(void) =20 dom0 =3D domain_create(domid, &dom0_cfg, flags); if ( IS_ERR(dom0) ) - panic("Error creating domain 0 (rc =3D %ld)\n", PTR_ERR(dom0)); + panic("Error creating d%d (rc =3D %ld)\n", domid, 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 ( alloc_dom0_vcpu0(dom0) =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 guest OS for %pd (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 7adb92d78a18..28bcfd1861d4 100644 --- a/xen/arch/x86/setup.c +++ b/xen/arch/x86/setup.c @@ -1080,7 +1080,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 @@ -1095,7 +1095,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.34.1