From patchwork Thu Aug 15 17:29:44 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 171438 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp2475202ily; Thu, 15 Aug 2019 10:31:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqw580QV0H4GYnWdrIBnOSmd5mStieMEsS099E/gjQ6jrRCgFhLvU2FN0L8vzH7yalZA8s6u X-Received: by 2002:a5e:9408:: with SMTP id q8mr7075474ioj.223.1565890285696; Thu, 15 Aug 2019 10:31:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565890285; cv=none; d=google.com; s=arc-20160816; b=jUwy9igAf0CkqZXmPxl38lmxBfDdv/5duk6N6r0AYiN5BgNRydRCQA8JhZVz4Ib22N jGxzMNlwQkEuq/t9yn5M+xRPNjaf6ZYtHz8e/HYU7j3wBlhjfbZQLZ+uD/3N6xKhCHDs V5rZHheSG0cW8Bx5TiUT7mCKmlj/UQCotZSrlpVaH2+I2ePGX+yBoXoi+a9jo3uy8hak L8bn0dafM/egDMfQcHeKk4xT8tfsMdALsyMtphjLxZwYovekxBefpbY6VEgYXkD/5wyo ZWW73/3l/pFjn+yzsei/1Qp7OOaaq8QvxUWHxiSNIP4O1rmGVSAGNLbSvZGqjNTcd818 Ymnw== 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=AAnsRPkx+2dsZWhuC1yc9D4nXQvYG9EM5yqKINtEM9E=; b=NBhA3UbsKsQbYlumla7cscGx0Y2HpV1xnEgM4YbBC/E8RNhACf0t8DfAKXZuwXA7PP IR9Zutkn5sz8ush/DQG3jEAyZZHphb3YOo5gMU9Dj+SbK6+j3C4HWfzXTJbeYUMVpnrH X940dTLnfoNaBRFbQKCcdUGOAp/RuaHKNh5mDZ/AnvpZcT6njM/p1Ty+q50Zwq6Cbs6g 0eveiRV4k0QOxIf4RVeFbmJFOM/tcdLNWAEyvaIzo7yu/r67xx8H1xbVV/OPu53ZRu4y 0hp4uNDcyZTTMlgv49SO4ieL1gdfcoAilOaVFrJI+XhlT4Fh1lz+I9ULlodfoyXMyebT pNKQ== 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 o75si3880426jao.30.2019.08.15.10.31.25 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 15 Aug 2019 10:31:25 -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 1hyJZU-0006Wt-HT; Thu, 15 Aug 2019 17:29:56 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hyJZS-0006Vt-PV for xen-devel@lists.xenproject.org; Thu, 15 Aug 2019 17:29:54 +0000 X-Inumbo-ID: 4988038a-bf82-11e9-8ba4-12813bfff9fa Received: from foss.arm.com (unknown [217.140.110.172]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTP id 4988038a-bf82-11e9-8ba4-12813bfff9fa; Thu, 15 Aug 2019 17:29:51 +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 DFF9228; Thu, 15 Aug 2019 10:29:50 -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 395AB3F706; Thu, 15 Aug 2019 10:29:50 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xenproject.org Date: Thu, 15 Aug 2019 18:29:44 +0100 Message-Id: <20190815172944.14163-1-julien.grall@arm.com> X-Mailer: git-send-email 2.11.0 Subject: [Xen-devel] [PATCH v2] 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 Reviewed-by: Volodymyr Babchuk Reviewed-by: Stefano Stabellini --- 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); }