[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v10 2/3] xen/domain: update create_dom0() messages


  • To: <dmkhn@xxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Alejandro Vallejo <alejandro.garciavallejo@xxxxxxx>
  • Date: Thu, 17 Jul 2025 12:34:56 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=proton.me smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0)
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=hagBnJwKCeEezhfN+8rqc5x6t/L0kK62IsP3VCZ+tNY=; b=GTmC8GPfk5n2p99dYtFcHTAOwyQrCx5V/7xsMAeQwHaNA0i1K+RSMBAP3JdQ1l4fxPS+4Xb6kmNwmblWPPP94IqljVAoWfbuEObIn96sWU2sfNqo9RihhqMg5Y4exlMnEX3k3ABhFeJ3eFZwPONU3+ioU+43P1FDw0I7WniYLR57xYgwtAcjFGYvrvBkC2KhhUNfQfBZXE1/jW/mg7JIVM/lRo6VQI7WKXujWmnDAJdIiy7bjA1/xni47tp2dZD0xg4C9T4PViGs9Ow8X3kp7DMTf+4mT2NY8SrdZqofCRlURZA9mA3cdeQEwz8I6CtbgilErIWNtXpORO4eTxRczA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=gsJK13ev/xiLK3xYQcE172Wz3BiNFgY1w/WifnXG6nLYkp8A4IXP7NAt7pDkcHro2W8xRtk+wFSp45uJERYEn/hAhofOzxSozkvBvdN7e/err/Gmhh+c4mlbtXmoZrDqp3bTtS6+LvWfDnILPryDaSkddFwzZsUilxLd3oMqEWS4q+KOIktUTqx2I9NXS8PQFO+XXQi6pPPTW91rjiA41hLqoJTgRcZxS3+fXTNFNuANUp3RsRm/eeUH1Fk9GMIbXruI6LzB3zgMQXXDpgY3+sMKeLMy+CD+uD8b19NxNeDddD//Eq+li9pDjMEXGfsHIVmpZu5hMMRzghyDVz3MRQ==
  • Cc: <andrew.cooper3@xxxxxxxxxx>, <anthony.perard@xxxxxxxxxx>, <jbeulich@xxxxxxxx>, <julien@xxxxxxx>, <michal.orzel@xxxxxxx>, <roger.pau@xxxxxxxxxx>, <sstabellini@xxxxxxxxxx>, <dmukhin@xxxxxxxx>, Xen-devel <xen-devel-bounces@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Thu, 17 Jul 2025 10:35:15 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On Mon Jun 23, 2025 at 8:28 PM CEST, dmkhn wrote:
> From: Denis Mukhin <dmukhin@xxxxxxxx>
>
> Use %pd for domain identification in error/panic messages in create_dom0().
>
> No functional change.
>
> Signed-off-by: Denis Mukhin <dmukhin@xxxxxxxx>

nit below. But with or without that change:

  Reviewed-by: Alejandro Vallejo <alejandro.garciavallejo@xxxxxxx>

> ---
> 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)
>  
>      dom0 = domain_create(domid, &dom0_cfg, flags);
>      if ( IS_ERR(dom0) )
> -        panic("Error creating domain 0 (rc = %ld)\n", PTR_ERR(dom0));
> +        panic("Error creating d%d (rc = %ld)\n", domid, PTR_ERR(dom0));
>  
>      if ( llc_coloring_enabled && (rc = dom0_set_llc_colors(dom0)) )
> -        panic("Error initializing LLC coloring for domain 0 (rc = %d)\n", 
> rc);
> +        panic("Error initializing LLC coloring for %pd (rc = %d)\n", dom0, 
> rc);
>  
>      if ( alloc_dom0_vcpu0(dom0) == NULL )
> -        panic("Error creating domain 0 vcpu0\n");
> +        panic("Error creating %pdv0\n", dom0);
>  
>      rc = construct_dom0(dom0);
>      if ( rc )
> -        panic("Could not set up DOM0 guest OS (rc = %d)\n", rc);
> +        panic("Could not set up guest OS for %pd (rc = %d)\n", dom0, rc);

nit: s/guest OS for %pd/%pd guest OS/

>  
>      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)
>  
>          if ( (strlen(acpi_param) == 0) && acpi_disabled )
>          {
> -            printk("ACPI is disabled, notifying Domain 0 (acpi=off)\n");
> +            printk("ACPI is disabled, notifying %pd (acpi=off)\n", d);
>              safe_strcpy(acpi_param, "off");
>          }
>  
> @@ -1095,7 +1095,7 @@ static struct domain *__init create_dom0(struct 
> boot_info *bi)
>  
>      bd->d = d;
>      if ( construct_dom0(bd) != 0 )
> -        panic("Could not construct domain 0\n");
> +        panic("Could not construct %pd\n", d);
>  
>      bd->cmdline = NULL;
>      xfree(cmdline);




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.