From patchwork Thu May 5 16:34:15 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 67220 Delivered-To: patch@linaro.org Received: by 10.140.92.199 with SMTP id b65csp844709qge; Thu, 5 May 2016 09:35:53 -0700 (PDT) X-Received: by 10.176.64.231 with SMTP id i94mr10300443uad.66.1462466150418; Thu, 05 May 2016 09:35:50 -0700 (PDT) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org. [192.237.175.120]) by mx.google.com with ESMTPS id p93si5137441uap.194.2016.05.05.09.35.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 May 2016 09:35:50 -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 1ayMEd-0001n2-3s; Thu, 05 May 2016 16:34:43 +0000 Received: from mail6.bemta6.messagelabs.com ([85.158.143.247]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ayMEc-0001lL-0j for xen-devel@lists.xen.org; Thu, 05 May 2016 16:34:42 +0000 Received: from [85.158.143.35] by server-2.bemta-6.messagelabs.com id 1C/3B-09532-1267B275; Thu, 05 May 2016 16:34:41 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrALMWRWlGSWpSXmKPExsVysyfVTVehTDv cYOZOLYslHxezODB6HN39mymAMYo1My8pvyKBNeNqy1WmgqesFR9mfGZqYPzF0sXIxSEksJFR 4mvHVcYuRk4g5zSjxIVXASA2m4CmxJ3Pn5hAbBEBaYlrny8zgjQwCzQzSkxf9Jqti5GDQ1ggS OLxi1qQGhYBVYlDL5aygoR5BVwktn31AAlLCMhJnDw2mRXE5hRwlVh6fiULxCoXiZM7JrFNYO RewMiwilG9OLWoLLVI11AvqSgzPaMkNzEzR9fQwEwvN7W4ODE9NScxqVgvOT93EyPQtwxAsIN x53OnQ4ySHExKorzblbTDhfiS8lMqMxKLM+KLSnNSiw8xynBwKEnwypUC5QSLUtNTK9Iyc4BB BpOW4OBREuGVAEnzFhck5hZnpkOkTjHqciz4cXstkxBLXn5eqpQ4rwJIkQBIUUZpHtwIWMBfY pSVEuZlBDpKiKcgtSg3swRV/hWjOAejkjAvE8gUnsy8ErhNr4COYAI64v1cTZAjShIRUlINjD KvuPcd2LLDm0n6V9bRa68ilN3WtRlc6uy+uP17w7sF/2dMe9XT9044YulJ7/+28zisLGY8PFN sK3ZJd/dvsajanOkTMp+v71F+M3Fr0m7RHd9kmh79833/30Ol8Ozsd1OXbHje7WX9+9xbSa/S IwdMZQuEAmr+CFUp/L2z7uCeM71v73x4xp+lxFKckWioxVxUnAgAVzpkj3MCAAA= X-Env-Sender: julien.grall@arm.com X-Msg-Ref: server-16.tower-21.messagelabs.com!1462466080!8390305!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.34; banners=-,-,- X-VirusChecked: Checked Received: (qmail 41221 invoked from network); 5 May 2016 16:34:40 -0000 Received: from foss.arm.com (HELO foss.arm.com) (217.140.101.70) by server-16.tower-21.messagelabs.com with SMTP; 5 May 2016 16:34:40 -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 5AEFA3A; Thu, 5 May 2016 09:34:47 -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 EC1E73F252; Thu, 5 May 2016 09:34:38 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xen.org Date: Thu, 5 May 2016 17:34:15 +0100 Message-Id: <1462466065-30212-7-git-send-email-julien.grall@arm.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1462466065-30212-1-git-send-email-julien.grall@arm.com> References: <1462466065-30212-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] [RFC 06/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 --- 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. *