From patchwork Tue Jun 7 16:06:12 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 69520 Delivered-To: patch@linaro.org Received: by 10.140.106.246 with SMTP id e109csp2056382qgf; Tue, 7 Jun 2016 09:08:05 -0700 (PDT) X-Received: by 10.31.61.195 with SMTP id k186mr87822vka.43.1465315685198; Tue, 07 Jun 2016 09:08:05 -0700 (PDT) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org. [192.237.175.120]) by mx.google.com with ESMTPS id k3si2960008vkh.39.2016.06.07.09.08.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Jun 2016 09:08:05 -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 1bAJWc-0002Hh-9j; Tue, 07 Jun 2016 16:06:42 +0000 Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bAJWa-0002F8-Bg for xen-devel@lists.xen.org; Tue, 07 Jun 2016 16:06:40 +0000 Received: from [193.109.254.147] by server-11.bemta-14.messagelabs.com id D2/87-23272-F01F6575; Tue, 07 Jun 2016 16:06:39 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrILMWRWlGSWpSXmKPExsVysyfVTZf/Y1i 4wZ1NvBZLPi5mcWD0OLr7N1MAYxRrZl5SfkUCa8axZRPZC66wVdzbup2pgfECaxcjF4eQwEZG iUsrJjJBOKcZJU6/3MTYxcjJwSagKXHn8ycmEFtEQFri2ufLYHFmgWZGiYUH/EBsYYFwifap/ 9hAbBYBVYm3ez6wdDFycPAKOEt07GcGCUsIyEmcPDaZFcTmFHCRaHvwCKxcCKhk6a8GxgmM3A sYGVYxqhenFpWlFuma6iUVZaZnlOQmZuboGhqa6OWmFhcnpqfmJCYV6yXn525iBHqXAQh2MK5 b7HyIUZKDSUmU9/OzsHAhvqT8lMqMxOKM+KLSnNTiQ4wyHBxKEryF74BygkWp6akVaZk5wDCD SUtw8CiJ8GaBpHmLCxJzizPTIVKnGHU5Fvy4vZZJiCUvPy9VSpxXB6RIAKQoozQPbgQs5C8xy koJ8zICHSXEU5BalJtZgir/ilGcg1FJmNcMZApPZl4J3KZXQEcwAR2x7FowyBEliQgpqQbGSL /iZRPSZ2o9m/Nx59SsHa6JGw5vvm31jt+76IzApPN/rhxQXsgolL+j6uImpbyZfO/28rmlRBj VPKviWc1is/Wy66y+17nrtDTf1YWILF+hc2fvUePe7Qz18tu5d7xhuylQEhahMHP13f6IB7L/ HjQvzi13bb+kH3bu0Mx3EwuWc+5eP7tTSomlOCPRUIu5qDgRAKn3m0l0AgAA X-Env-Sender: julien.grall@arm.com X-Msg-Ref: server-8.tower-27.messagelabs.com!1465315598!42637584!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.46; banners=-,-,- X-VirusChecked: Checked Received: (qmail 65139 invoked from network); 7 Jun 2016 16:06:39 -0000 Received: from foss.arm.com (HELO foss.arm.com) (217.140.101.70) by server-8.tower-27.messagelabs.com with SMTP; 7 Jun 2016 16:06:39 -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 E29EC2F; Tue, 7 Jun 2016 09:07:12 -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 5FEEC3F21A; Tue, 7 Jun 2016 09:06:37 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xen.org Date: Tue, 7 Jun 2016 17:06:12 +0100 Message-Id: <1465315583-1278-6-git-send-email-julien.grall@arm.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1465315583-1278-1-git-send-email-julien.grall@arm.com> References: <1465315583-1278-1-git-send-email-julien.grall@arm.com> Cc: andre.przywara@arm.com, Julien Grall , sstabellini@kernel.org, wei.chen@arm.com, steve.capper@arm.com Subject: [Xen-devel] [PATCH v3 05/16] 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. *