From patchwork Tue Aug 13 18:17:21 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 171208 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp1243556ily; Tue, 13 Aug 2019 11:18:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqyJuk3UEvjfQrq95QIFEgkpGsnHU6ZhQyOTZEMbUrmRJ0WEHIGjwJkOP9DtV6EMqy6rqTrM X-Received: by 2002:a6b:610d:: with SMTP id v13mr3979607iob.226.1565720331477; Tue, 13 Aug 2019 11:18:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565720331; cv=none; d=google.com; s=arc-20160816; b=DIQDDQ0gGmVY0ob7VTiaFUvgPd3n7kb1kmiSrbamRqfvrw3hQay6UC7A2i7zQpBpPP h9XUrqe9XooDxI/nVb8dCRi1gOgp54a4dHp6D3DOUNrrE9gBEd8VI1NV4HYGl3jkv/Bi W/ky/2PAmsrIZx/xWAKf9IIepikMPDWyI54K1I109rL8e2rWqYwEzJKNIBpm6UrJW/rT x8BkoM+wf1XgFbIXUAdyXLeeLwCtPEYk9Lfc45omGdO33Jt0x9qrCosRHc2HItI0CALW SPAQMo9bbrtL1B8YqhQTmpdlEEc3wyoBjejD30atePKt5MJ7giI2L+ogkTIvsUQM/B97 74lQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-unsubscribe:list-id :precedence:subject:message-id:date:to:from; bh=yl8y61uqY61BtrOD8NHCIamkoZWhBMUONQiqP7RFdjU=; b=OW8sv0TecIlROo+0LLc07UnQ2qEAbMc4/b9jtu4pB3jEkxsTX8GPJ6uoH6cJOlp+iQ YqRwP+ruuV3gswcUA3JURcLEpfDCilSDuKkqCDHLbmovB3irw1bsQeRwwdopDAs2w5ha 6KlTVVRJe4rFW+UtzqpFesbTitC/NdGquiRCdV1P4cPKSilf3YhenMDu409o5MWaR65l IQnvT7tUz6FyyiNnVKyPI5DjwxTfaUAEq2BEWQ/nlLZ+Ugv2u1LTdHmNceRDNcPXNmVi UmYU1kbQbbWymbnLo6kLVRIlkHTSI8hfLcDcMZJ+lnuwpB31LEAdJCMM4qiwIaeBrxLH vgvA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of xen-devel-bounces@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.google.com with ESMTPS id e9si15332220ioa.13.2019.08.13.11.18.51 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 13 Aug 2019 11:18:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hxbMR-0000v2-Gm; Tue, 13 Aug 2019 18:17:31 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hxbMQ-0000uv-7A for xen-devel@lists.xenproject.org; Tue, 13 Aug 2019 18:17:30 +0000 X-Inumbo-ID: 9ae3ce7c-bdf6-11e9-b288-1bd3d61f9bc7 Received: from foss.arm.com (unknown [217.140.110.172]) by us1-rack-iad1.inumbo.com (Halon) with ESMTP id 9ae3ce7c-bdf6-11e9-b288-1bd3d61f9bc7; Tue, 13 Aug 2019 18:17:27 +0000 (UTC) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id C5FD91570; Tue, 13 Aug 2019 11:17:26 -0700 (PDT) Received: from e108454-lin.cambridge.arm.com (e108454-lin.cambridge.arm.com [10.1.196.50]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 1F94D3F706; Tue, 13 Aug 2019 11:17:26 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xenproject.org Date: Tue, 13 Aug 2019 19:17:21 +0100 Message-Id: <20190813181721.27242-1-julien.grall@arm.com> X-Mailer: git-send-email 2.11.0 Subject: [Xen-devel] [PATCH] xen/arm: domain_build: Print the correct domain in dtb_load() X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Julien Grall , Stefano Stabellini , Volodymyr Babchuk MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" 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 --- xen/arch/arm/domain_build.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/xen/arch/arm/domain_build.c b/xen/arch/arm/domain_build.c index 4c8404155a..9b040f5e99 100644 --- a/xen/arch/arm/domain_build.c +++ b/xen/arch/arm/domain_build.c @@ -1817,8 +1817,9 @@ 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,