From patchwork Thu Jul 28 14:51:26 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 9251335 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id CB4576077C for ; Thu, 28 Jul 2016 14:55:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BD5AB279E0 for ; Thu, 28 Jul 2016 14:55:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B235527D16; Thu, 28 Jul 2016 14:55:08 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 477EE279E0 for ; Thu, 28 Jul 2016 14:55:08 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bSmfI-0002oN-L9; Thu, 28 Jul 2016 14:52:00 +0000 Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bSmfG-0002nI-HG for xen-devel@lists.xen.org; Thu, 28 Jul 2016 14:51:58 +0000 Received: from [193.109.254.147] by server-9.bemta-14.messagelabs.com id 8F/9E-10182-D0C1A975; Thu, 28 Jul 2016 14:51:57 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrOLMWRWlGSWpSXmKPExsVysyfVTZdXZla 4wefjohZLPi5mcWD0OLr7N1MAYxRrZl5SfkUCa8a21WsYC+ZwVNy6cIatgfE2WxcjF4eQwCZG idcHPzFDOKcZJU5sOszUxcjJwSagKXHn8ycwW0RAWuLa58uMIEXMAu2MEmv7e5lBEsICARJNp 26xg9gsAqoSC/csYASxeQWcJa7MvcECYksIyEmcPDaZtYuRg4NTwEXidbcQSFgIqGT6zKWMEx i5FzAyrGLUKE4tKkst0jU01EsqykzPKMlNzMwB8kz0clOLixPTU3MSk4r1kvNzNzECPcwABDs Yz6xwPsQoycGkJMobFjozXIgvKT+lMiOxOCO+qDQntfgQowwHh5IEr7/0rHAhwaLU9NSKtMwc YKjBpCU4eJREeOVA0rzFBYm5xZnpEKlTjIpS4ry8IAkBkERGaR5cGyy8LzHKSgnzMgIdIsRTk FqUm1mCKv+KUZyDUUmYNxVkCk9mXgnc9FdAi5mAFhfHzgBZXJKIkJJqYOTpzwhQ3fVshtHuGf Meca5v536sOvXAdY0KxUUb8trEDZxdzIv0bnzd7KTqYHZ+qdZOWdXZKRPk6o0WP9psxhGi8s1 Ku+rLlvyHb2fmmFa8uzfH//3d/7NrJa6uFv+m8L+j9e6D+E0zLycp/n7lxpH+qkPg3rZdrOye shUBr2/U13bc2bz2YqESS3FGoqEWc1FxIgD5TUjVagIAAA== X-Env-Sender: julien.grall@arm.com X-Msg-Ref: server-3.tower-27.messagelabs.com!1469717516!56227464!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.77; banners=-,-,- X-VirusChecked: Checked Received: (qmail 5002 invoked from network); 28 Jul 2016 14:51:57 -0000 Received: from foss.arm.com (HELO foss.arm.com) (217.140.101.70) by server-3.tower-27.messagelabs.com with SMTP; 28 Jul 2016 14:51:57 -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 B97ABB7F; Thu, 28 Jul 2016 07:53:13 -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 85C623F21A; Thu, 28 Jul 2016 07:51:55 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xen.org Date: Thu, 28 Jul 2016 15:51:26 +0100 Message-Id: <1469717505-8026-4-git-send-email-julien.grall@arm.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1469717505-8026-1-git-send-email-julien.grall@arm.com> References: <1469717505-8026-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] [RFC 03/22] 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" X-Virus-Scanned: ClamAV using ClamSMTP 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 --- 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 d389f2b..ff82f12 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); } /*