From patchwork Thu Sep 15 11:28:19 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 76289 Delivered-To: patch@linaro.org Received: by 10.140.106.72 with SMTP id d66csp2387394qgf; Thu, 15 Sep 2016 04:31:04 -0700 (PDT) X-Received: by 10.107.158.213 with SMTP id h204mr16089016ioe.75.1473939064453; Thu, 15 Sep 2016 04:31:04 -0700 (PDT) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org. [192.237.175.120]) by mx.google.com with ESMTPS id o21si3218421ita.100.2016.09.15.04.31.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Sep 2016 04:31:04 -0700 (PDT) Received-SPF: neutral (google.com: 192.237.175.120 is neither permitted nor denied by best guess record for domain of xen-devel-bounces@lists.xen.org) client-ip=192.237.175.120; Authentication-Results: mx.google.com; spf=neutral (google.com: 192.237.175.120 is neither permitted nor denied by best guess record for domain of xen-devel-bounces@lists.xen.org) smtp.mailfrom=xen-devel-bounces@lists.xen.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bkUqc-0004bE-KA; Thu, 15 Sep 2016 11:28:54 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bkUqb-0004ap-2p for xen-devel@lists.xen.org; Thu, 15 Sep 2016 11:28:53 +0000 Received: from [193.109.254.147] by server-7.bemta-6.messagelabs.com id 8E/BE-15404-4F58AD75; Thu, 15 Sep 2016 11:28:52 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrMLMWRWlGSWpSXmKPExsVysyfVTfdz661 wgxO3LSyWfFzM4sDocXT3b6YAxijWzLyk/IoE1oxVB4+xFXRzVux/1MPYwLiRvYuRk0NIYBOj xJp9EV2MXED2aUaJpq0LWUESbAKaEnc+f2ICsUUEpCWufb7MCFLELNDOKLG2v5cZJCEsECcxb 94yoCIODhYBVYml101BTF4BF4nNvyVBKiQE5CROHpvMChLmFHCVWPJcFGKti8SxEzvZJjByL2 BkWMWoXpxaVJZapGuql1SUmZ5RkpuYmaNraGCml5taXJyYnpqTmFSsl5yfu4kR6FkGINjBOP2 y/yFGSQ4mJVFet7Rb4UJ8SfkplRmJxRnxRaU5qcWHGGU4OJQkePe1AOUEi1LTUyvSMnOAIQaT luDgURLh/QGS5i0uSMwtzkyHSJ1iVJQSh+gTAElklObBtcHC+hKjrJQwLyPQIUI8BalFuZklq PKvGMU5GJWEeY+ATOHJzCuBm/4KaDET0OIta66DLC5JREhJNTCGN7t+/x6zKuGQbGnQ/VmW34 1uxropByaczzG6xXWP3zasZLqwf4cU54cQzet9hdxVLbmlQiu+ceh2FnyaveHa5jTuY19nXA7 b6PWW9YtD5haOxYkdfDPT3Fuv3T2nVqjrdcz4rRFPURzzTsPS/OXH/z5olRW1r4uU0pvtY1tT tOBaxas3OUosxRmJhlrMRcWJAKbnN5xmAgAA X-Env-Sender: julien.grall@arm.com X-Msg-Ref: server-12.tower-27.messagelabs.com!1473938931!59068367!1 X-Originating-IP: [217.140.101.70] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 8.84; banners=-,-,- X-VirusChecked: Checked Received: (qmail 48840 invoked from network); 15 Sep 2016 11:28:51 -0000 Received: from foss.arm.com (HELO foss.arm.com) (217.140.101.70) by server-12.tower-27.messagelabs.com with SMTP; 15 Sep 2016 11:28:51 -0000 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 3CFA422E; Thu, 15 Sep 2016 04:28:51 -0700 (PDT) Received: from e108454-lin.cambridge.arm.com (e108454-lin.cambridge.arm.com [10.1.218.32]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 3C45B3F251; Thu, 15 Sep 2016 04:28:50 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xen.org Date: Thu, 15 Sep 2016 12:28:19 +0100 Message-Id: <1473938919-31976-4-git-send-email-julien.grall@arm.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1473938919-31976-1-git-send-email-julien.grall@arm.com> References: <1473938919-31976-1-git-send-email-julien.grall@arm.com> Cc: proskurin@sec.in.tum.de, Julien Grall , sstabellini@kernel.org, steve.capper@arm.com, wei.chen@linaro.org Subject: [Xen-devel] [for-4.8][PATCH v2 03/23] xen/arm: p2m: Rename parameter in p2m_{remove, write}_pte... X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" to make clear of the usage. I.e it is used to inform whether Xen needs to clean the entry after writing in the page table. Signed-off-by: Julien Grall Acked-by: Stefano Stabellini --- Changes in v2: - Add Stefano's acked-by --- xen/arch/arm/p2m.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xen/arch/arm/p2m.c b/xen/arch/arm/p2m.c index f482cfd..5a1d45b 100644 --- a/xen/arch/arm/p2m.c +++ b/xen/arch/arm/p2m.c @@ -390,19 +390,19 @@ static lpae_t mfn_to_p2m_entry(mfn_t mfn, p2m_type_t t, p2m_access_t a) return e; } -static inline void p2m_write_pte(lpae_t *p, lpae_t pte, bool_t flush_cache) +static inline void p2m_write_pte(lpae_t *p, lpae_t pte, bool clean_pte) { write_pte(p, pte); - if ( flush_cache ) + if ( clean_pte ) clean_dcache(*p); } -static inline void p2m_remove_pte(lpae_t *p, bool_t flush_cache) +static inline void p2m_remove_pte(lpae_t *p, bool clean_pte) { lpae_t pte; memset(&pte, 0x00, sizeof(pte)); - p2m_write_pte(p, pte, flush_cache); + p2m_write_pte(p, pte, clean_pte); } /*