Message ID | 20190603160350.29806-13-julien.grall@arm.com |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp4660928ili; Mon, 3 Jun 2019 09:05:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqyLepCQBlNJagWT/tQN3Vh/VVdh0mGYJ1P36lj9B1pKuOfEkPUvNqWgyMlLECkTDs2a9L1Z X-Received: by 2002:a02:5489:: with SMTP id t131mr15511602jaa.70.1559577945380; Mon, 03 Jun 2019 09:05:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559577945; cv=none; d=google.com; s=arc-20160816; b=SF3CLT+IdVQzVz1ff2BJun3hasIudaNfouVTJdtaX1FDcYzu0owgoV0H2Joycbd/+s /m7Q9YhjgMHsKkT+Bv7EsS9P3fjzkAMWxRcdhev7fKDxrIwW2Td1+Db9P23Vc5AMfbo0 Ucw79YPR80q1q9+NLtOUMvgmZZ5cMWe/NNKRSTSEDx+Qv9jw4hpezKuRcvNPLYhVuGyT d4gvXz37wYmA6ainsHhm6EYD8FT2z2zBiEyozTKJM8zk3mtLfODGvXUd5r8rpNaQePQQ 1/6j17209ywnVkjr5ILHWOaqDwrHJVarARGIo7qVa21b8YOAqz0wgFGOROp4nc490DNa hYXQ== 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:references:in-reply-to:message-id:date:to:from; bh=UbgWjUOcZRkbUW+pWRGSAFnc4ffbKls3VPptBlWvyPE=; b=NIZBNMqlX5RWZtKAbmZzQQRXRNTnRwblWC8HCAYS8GZMu+L08HZfRYeZqjSS+3JbAH SWiyCgTqLzHq5AjPm4QnROHNsZMUJio2FFTv3IocHSbzc0cV07HpbPMML+ThNOxt5G1e oaK2DHZbeXY9DYjEE+hy+exaFm0vtAGNsZBJZg0y8bfvrli/z7YLCn75zTXAp7HzZW99 m/QuqBOAVFG70uKsJLInv+qzdw100bDNYiNJDQjk1p3x9GoECiyE4rQhgGFmbdNArciU QXnaUcUtJMGBjQ+gHlgMLxlQe8bCiZyOBM/Wfh4d7bcyamfhRfktflVBj4JJTk5tfRng AH8w== 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: <xen-devel-bounces@lists.xenproject.org> Received: from lists.xenproject.org (lists.xenproject.org. [192.237.175.120]) by mx.google.com with ESMTPS id e2si9802535itk.74.2019.06.03.09.05.45 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 03 Jun 2019 09:05:45 -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 <xen-devel-bounces@lists.xenproject.org>) id 1hXpRg-0002Bk-J3; Mon, 03 Jun 2019 16:04:24 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from <SRS0=fnY6=UC=arm.com=julien.grall@srs-us1.protection.inumbo.net>) id 1hXpRf-0002A3-0D for xen-devel@lists.xenproject.org; Mon, 03 Jun 2019 16:04:23 +0000 X-Inumbo-ID: 3ffb4560-8619-11e9-8980-bc764e045a96 Received: from foss.arm.com (unknown [217.140.101.70]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTP id 3ffb4560-8619-11e9-8980-bc764e045a96; Mon, 03 Jun 2019 16:04:21 +0000 (UTC) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 9476380D; Mon, 3 Jun 2019 09:04:21 -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 3DF273F246; Mon, 3 Jun 2019 09:04:20 -0700 (PDT) From: Julien Grall <julien.grall@arm.com> To: xen-devel@lists.xenproject.org Date: Mon, 3 Jun 2019 17:03:48 +0100 Message-Id: <20190603160350.29806-13-julien.grall@arm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190603160350.29806-1-julien.grall@arm.com> References: <20190603160350.29806-1-julien.grall@arm.com> Subject: [Xen-devel] [PATCH v3 12/14] xen/x86: p2m: Rework printk format in audit_p2m() X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion <xen-devel.lists.xenproject.org> List-Unsubscribe: <https://lists.xenproject.org/mailman/options/xen-devel>, <mailto:xen-devel-request@lists.xenproject.org?subject=unsubscribe> List-Post: <mailto:xen-devel@lists.xenproject.org> List-Help: <mailto:xen-devel-request@lists.xenproject.org?subject=help> List-Subscribe: <https://lists.xenproject.org/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xenproject.org?subject=subscribe> Cc: Wei Liu <wl@xen.org>, George Dunlap <george.dunlap@eu.citrix.com>, Andrew Cooper <andrew.cooper3@citrix.com>, Julien Grall <julien.grall@arm.com>, Jan Beulich <jbeulich@suse.com>, =?utf-8?q?Roger_Pau_Monn=C3=A9?= <roger.pau@citrix.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" <xen-devel-bounces@lists.xenproject.org> |
Series |
xen/arm: Properly disable M2P on Arm
|
expand
|
diff --git a/xen/arch/x86/mm/p2m.c b/xen/arch/x86/mm/p2m.c index e03f0ae630..208c196667 100644 --- a/xen/arch/x86/mm/p2m.c +++ b/xen/arch/x86/mm/p2m.c @@ -2838,8 +2838,7 @@ void audit_p2m(struct domain *d, if ( od != d ) { - P2M_PRINTK("wrong owner %#lx -> %p(%u) != %p(%u)\n", - mfn, od, (od?od->domain_id:-1), d, d->domain_id); + P2M_PRINTK("mfn %"PRI_mfn" owner %pd != %pd\n", mfn, od, d); continue; }
One of the printk format in audit_p2m() may be difficult to read as it is not clear what is the first number. Furthermore, the format can now take advantage of %pd. Signed-off-by: Julien Grall <julien.grall@arm.com> --- Changes in v3: - Patch added --- xen/arch/x86/mm/p2m.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)