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

Re: [Xen-devel] [PATCH v2] xen/arm: domain_build: Print the correct domain in dtb_load()


  • To: Julien Grall <julien.grall@xxxxxxx>
  • From: Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • Date: Fri, 16 Aug 2019 16:33:59 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=epam.com; dmarc=pass action=none header.from=epam.com; dkim=pass header.d=epam.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=WcTCg7DACWdi7lAP9hXbw6Zti1cSuKlcTSd6JxU9Fe8=; b=TeQCA15t8uSzcQWQZwnKYDNDosWxT2EXIaPan8P0TkqqNNBjBeePkaox2i8ncCYqoWC8RW0HfV4Y/bPJY1AnwA5P/YJOMJGnPbM1i0ivx2Q873ZnSxB/GJBCfGKm+fDAQBRJOGM7ZmHbYkc1bDcK8RctfVvOy7x6f+xTXtEsRSZkOBA8sGDYQcMgT1R527v1RwR4P9ZpoDrIgLRloRYvBfk02tpo4cUIFYmld4yL9Up5nXzkcCrGi4oWCRsDwp1Km8aft0k3kq0qG6Wh2hkNADyaqjx/LqkhWNkcpNlaYe7F5Ok7VqDuTWz9AA7ryGzpt8WCmO7eOdyjwoVqYkKI4Q==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=K82AWSbRY+Jf1kK66TfPCY+gZyFQk4nRfp6oa4yWUYko7gFioyTe8Oa9KylFOBmrAXK43pOy4UYPugRPPMZwZqHJFPOcRA0TM6hmaJOMeBVhakH3WExA1xpsdnHydBZ5PVKnLLinFxOmYVncqd8HV2ZCMrSigdKqSH9AMRtghi+pWaWs2SmZhxY+ftW/HcK7DSec8QX8jrNcOgbQ/w/4rJddJZWwLLSH551zAQW3eZDzI2XfLJHxzlGY0cNzMbRr66L8svHdsxx4AXMPqWqEQXXByn/C1FjvA0rC4W8hJd6F7MfNSuqp7qbl6cj0gGwDCYf6TcRF7lGcpiPYNda4Vg==
  • Authentication-results: spf=none (sender IP is ) smtp.mailfrom=Volodymyr_Babchuk@xxxxxxxx;
  • Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • Delivery-date: Fri, 16 Aug 2019 16:34:09 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHVU48ONo2MoESitEeN0SnmZLqftKb9+a8A
  • Thread-topic: [PATCH v2] xen/arm: domain_build: Print the correct domain in dtb_load()

Julien Grall writes:

> dtb_load() can be called by other domain than dom0. To avoid confusion
> in the log, print the correct domain.
>
> Signed-off-by: Julien Grall <julien.grall@xxxxxxx>
Reviewed-by: Volodymyr Babchuk <volodymyr_babchuk@xxxxxxxx>

>
> ---
>     Changes in v2:
>         - Fix the second print in the function as well.
> ---
>  xen/arch/arm/domain_build.c | 8 +++++---
>  1 file changed, 5 insertions(+), 3 deletions(-)
>
> diff --git a/xen/arch/arm/domain_build.c b/xen/arch/arm/domain_build.c
> index 4e51e22927..126374f603 100644
> --- a/xen/arch/arm/domain_build.c
> +++ b/xen/arch/arm/domain_build.c
> @@ -1787,15 +1787,17 @@ static void __init dtb_load(struct kernel_info *kinfo)
>  {
>      unsigned long left;
>  
> -    printk("Loading dom0 DTB to 0x%"PRIpaddr"-0x%"PRIpaddr"\n",
> -           kinfo->dtb_paddr, kinfo->dtb_paddr + fdt_totalsize(kinfo->fdt));
> +    printk("Loading %pd DTB to 0x%"PRIpaddr"-0x%"PRIpaddr"\n",
> +           kinfo->d, kinfo->dtb_paddr,
> +           kinfo->dtb_paddr + fdt_totalsize(kinfo->fdt));
>  
>      left = copy_to_guest_phys_flush_dcache(kinfo->d, kinfo->dtb_paddr,
>                                             kinfo->fdt,
>                                             fdt_totalsize(kinfo->fdt));
>  
>      if ( left != 0 )
> -        panic("Unable to copy the DTB to dom0 memory (left = %lu bytes)\n", 
> left);
> +        panic("Unable to copy the DTB to %pd memory (left = %lu bytes)\n",
> +              kinfo->d, left);
>      xfree(kinfo->fdt);
>  }


-- 
Volodymyr Babchuk at EPAM
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

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