From patchwork Mon May 23 14:17:22 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 68380 Delivered-To: patch@linaro.org Received: by 10.140.92.199 with SMTP id b65csp112184qge; Mon, 23 May 2016 07:19:09 -0700 (PDT) X-Received: by 10.176.64.161 with SMTP id i30mr8288374uad.150.1464013146446; Mon, 23 May 2016 07:19:06 -0700 (PDT) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org. [192.237.175.120]) by mx.google.com with ESMTPS id f1si20303226uaf.22.2016.05.23.07.19.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 23 May 2016 07:19:06 -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 1b4qg4-0003VW-50; Mon, 23 May 2016 14:17:52 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b4qg2-0003UF-Qk for xen-devel@lists.xen.org; Mon, 23 May 2016 14:17:50 +0000 Received: from [85.158.139.211] by server-7.bemta-5.messagelabs.com id 1B/2F-26575-E0113475; Mon, 23 May 2016 14:17:50 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrMLMWRWlGSWpSXmKPExsVysyfVTZdX0Dn cYF63kcWSj4tZHBg9ju7+zRTAGMWamZeUX5HAmnFs2UT2gitsFfe2bmdqYLzA2sXIxSEksJFR Yt73f4xdjJxAzmlGiZvv0kBsNgFNiTufPzGB2CIC0hLXPl9mBGlgFpjDKLHmwV9mkISwQLjEj S3XwIpYBFQldl+4ygZi8wq4SKy5c4MdxJYQkJM4eWwyK4jNKeAqsf3LOahlLhIdt3ayT2DkXs DIsIpRozi1qCy1SNfQVC+pKDM9oyQ3MTNH19DAVC83tbg4MT01JzGpWC85P3cTI9DDDECwg7F hu+chRkkOJiVR3pM7nMKF+JLyUyozEosz4otKc1KLDzHKcHAoSfBu5ncOFxIsSk1PrUjLzAGG GkxagoNHSYT3EB9Qmre4IDG3ODMdInWKUZdjwY/ba5mEWPLy81KlxHmngcwQACnKKM2DGwEL+ 0uMslLCvIxARwnxFKQW5WaWoMq/YhTnYFQS5t0CMoUnM68EbtMroCOYgI54KO0AckRJIkJKqo FxTsm/QxeN2CbKuB25f5FhfdK2WYYnrB0OmQU5WG/YZvpVNCJVZc7qh4q/DrtXfi82nl21VO/ GtHkLo7Z+7dyvyLzteNP+Jfue513IDqz0Fuz6wLIoTERv37SSJYf8Mzf3ZOw3keb7VvnOaVLg U1/7+Yv/tffWf+2Z7x16IavgWEV8+MzXU9R6lFiKMxINtZiLihMBfEi943YCAAA= X-Env-Sender: julien.grall@arm.com X-Msg-Ref: server-3.tower-206.messagelabs.com!1464013068!37465424!2 X-Originating-IP: [217.140.101.70] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 8.34; banners=-,-,- X-VirusChecked: Checked Received: (qmail 34181 invoked from network); 23 May 2016 14:17:49 -0000 Received: from foss.arm.com (HELO foss.arm.com) (217.140.101.70) by server-3.tower-206.messagelabs.com with SMTP; 23 May 2016 14:17:49 -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 63EA03C; Mon, 23 May 2016 07:18:11 -0700 (PDT) Received: from e108454-lin.cambridge.arm.com (e108454-lin.cambridge.arm.com [10.1.215.28]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 1DFE13F21A; Mon, 23 May 2016 07:17:47 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xen.org Date: Mon, 23 May 2016 15:17:22 +0100 Message-Id: <1464013052-32587-6-git-send-email-julien.grall@arm.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1464013052-32587-1-git-send-email-julien.grall@arm.com> References: <1464013052-32587-1-git-send-email-julien.grall@arm.com> Cc: sstabellini@kernel.org, wei.liu2@citrix.com, steve.capper@arm.com, andre.przywara@arm.com, Julien Grall , wei.chen@linaro.org Subject: [Xen-devel] [PATCH v2 05/15] xen/arm64: Add an helper to invalidate all instruction caches 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" Signed-off-by: Julien Grall Acked-by: Stefano Stabellini --- Changes in v2: - Add Stefano's acked-by --- xen/include/asm-arm/arm64/page.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xen/include/asm-arm/arm64/page.h b/xen/include/asm-arm/arm64/page.h index 29a32cf..fbdc8fb 100644 --- a/xen/include/asm-arm/arm64/page.h +++ b/xen/include/asm-arm/arm64/page.h @@ -24,6 +24,12 @@ static inline void write_pte(lpae_t *p, lpae_t pte) * inline asm operand) */ #define __clean_and_invalidate_dcache_one(R) "dc civac, %" #R ";" +/* Invalidate all instruction caches in Inner Shareable domain to PoU */ +static inline void invalidate_icache(void) +{ + asm volatile ("ic ialluis"); +} + /* * Flush all hypervisor mappings from the TLB of the local processor. *