From nobody Thu Oct 30 22:39:43 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=1753846500; cv=none; d=zohomail.com; s=zohoarc; b=V7AAFak8yBBBSc/Xx6PAffGo2sZDAyRGZI0N/eHZ3UTY11oTTxHierKPMZs51P2QKcKlk5plfeJ2CzQAtwhWFNGR5zBAtmB+AEvE6XrsteJfktYbAnV5O/2fqjq1FjyAc4qLDGZGP7fGJcNbNahmo/Ru4lfhuuFlY65z8RGbPPM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1753846500; 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=21CGfiduzpziIV4mA/drtwkCome57ET0jYrlmwr6ITs=; b=LvH8ACswd08Z/yENAar3z8S/SycLCCDspp/gKuPF6lNZxBpcn8fBj561eLebveztVYe1TOCtpmNUtXQUERn7s7ipaDiYWPeDLm4Pa6lNjFDf9jj4/OVPuc/DT5LcRIuzgNl27nYvdX2RrAwVDNIKVmueJ0iwQJMBnIL2i81I338= 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 1753846500153968.2075026689638; Tue, 29 Jul 2025 20:35:00 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.1063334.1429104 (Exim 4.92) (envelope-from ) id 1ugxaa-00041l-5L; Wed, 30 Jul 2025 03:34:48 +0000 Received: by outflank-mailman (output) from mailman id 1063334.1429104; Wed, 30 Jul 2025 03:34:48 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1ugxaZ-00041Y-Vs; Wed, 30 Jul 2025 03:34:47 +0000 Received: by outflank-mailman (input) for mailman id 1063334; Wed, 30 Jul 2025 03:34:46 +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 1ugxaY-0003i8-RG for xen-devel@lists.xenproject.org; Wed, 30 Jul 2025 03:34:46 +0000 Received: from mail-10628.protonmail.ch (mail-10628.protonmail.ch [79.135.106.28]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 22437bfa-6cf6-11f0-b895-0df219b8e170; Wed, 30 Jul 2025 05:34:44 +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: 22437bfa-6cf6-11f0-b895-0df219b8e170 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proton.me; s=vg5hr7guqrfxlpvl67q6zfy2ja.protonmail; t=1753846483; x=1754105683; bh=21CGfiduzpziIV4mA/drtwkCome57ET0jYrlmwr6ITs=; 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=WiFHUwxEEjBO03ZPJ2c/k+oadeibgcj/mX6HgLmkuVeq/VbCAAvNPmVUVq9aQJLnC +MQnJssIOqoFNcqAHkBnVzkEwYTmLI9qCfgMx0MKUtvS5y9dX4bRypDFSdmfAXq2jk jfOx/2b659F0qXhz1qkjWDDFW+nRGvWQ1+I3Hn8yXtq8KJYc00exXiFlPCdArEddJx iVq9e7U48uRZrcQ0TT2DH5zg+92MG2Bt3mYFdl/23pcwRZenacDtt88HjXhF5N8OTh uPEiqW9nlaOLiFzXNRAUeEkBkis7ErQMZs2swEYVGzy4KbKZVA6m8FfUAdvjHJQTvI pjD8XkyPnh87w== Date: Wed, 30 Jul 2025 03:34:39 +0000 To: xen-devel@lists.xenproject.org From: dmkhn@proton.me Cc: alejandro.garciavallejo@amd.com, 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 v12 3/3] xen/domain: update create_dom0() messages Message-ID: <20250730033414.1614441-4-dmukhin@ford.com> In-Reply-To: <20250730033414.1614441-1-dmukhin@ford.com> References: <20250730033414.1614441-1-dmukhin@ford.com> Feedback-ID: 123220910:user:proton X-Pm-Message-ID: ad6cd2a0ffe990e49d884ba362a8d9c3697519c2 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @proton.me) X-ZM-MESSAGEID: 1753846502443116600 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 --- Changes since v11: - Dropped use of %pd for non-existing domain in Arm's code - Added Jan's A-b --- 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 789f2b9d3ce7..02a15d160962 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 2ff7c28c277b..a740c6f60c63 100644 --- a/xen/arch/x86/setup.c +++ b/xen/arch/x86/setup.c @@ -1084,7 +1084,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 @@ -1099,7 +1099,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