From patchwork Wed Jun 22 11:15:20 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 70631 Delivered-To: patch@linaro.org Received: by 10.140.28.4 with SMTP id 4csp2492663qgy; Wed, 22 Jun 2016 04:17:47 -0700 (PDT) X-Received: by 10.55.182.131 with SMTP id g125mr34810796qkf.171.1466594263677; Wed, 22 Jun 2016 04:17:43 -0700 (PDT) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org. [192.237.175.120]) by mx.google.com with ESMTPS id c187si5667810qkg.13.2016.06.22.04.17.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 22 Jun 2016 04:17:43 -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 1bFg8L-0002Ll-2U; Wed, 22 Jun 2016 11:15:49 +0000 Received: from mail6.bemta6.messagelabs.com ([85.158.143.247]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bFg8I-0002El-JQ for xen-devel@lists.xen.org; Wed, 22 Jun 2016 11:15:46 +0000 Received: from [85.158.143.35] by server-2.bemta-6.messagelabs.com id 0D/33-11548-2637A675; Wed, 22 Jun 2016 11:15:46 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrPLMWRWlGSWpSXmKPExsVysyfVTTexOCv c4OgmK4slHxezODB6HN39mymAMYo1My8pvyKBNePYsonsBVfYKu5t3c7UwHiBtYuRk0NIYBOj xOqDql2MXED2aUaJ9xtPMIIk2AQ0Je58/sQEYosISEtc+3wZLM4s4CDx5uM9FhBbWCBcYv21D 8xdjBwcLAKqEu/WaYKYvAIuEhdPFoJUSAjISZw8NhlsFaeAq8TJo5MZIda6SNw+sId1AiP3Ak aGVYzqxalFZalFuoZ6SUWZ6RkluYmZObqGBmZ6uanFxYnpqTmJScV6yfm5mxiBnmUAgh2MO58 7HWKU5GBSEuWVV84KF+JLyk+pzEgszogvKs1JLT7EKMPBoSTBa1MElBMsSk1PrUjLzAGGGExa goNHSYS3DiTNW1yQmFucmQ6ROsWoy7Hgx+21TEIsefl5qVLivHwgRQIgRRmleXAjYOF+iVFWS piXEegoIZ6C1KLczBJU+VeM4hyMSsK8QSBTeDLzSuA2vQI6ggnoiGX96SBHlCQipKQaGPNu/g 35sXZ1i7DZje2JrG3256xnb37WbaSupBnOpZn3/1vhlFrj+KJV/6c2uvT+mWL+dz9DbO9r3n8 XWOYmbFGsniCV1bJqauKqn/LsBq77XM/4RLq5f5jgcqy+arLKkomPfp1/OZlBk8luV4vRxSXl WXobJ1a6XZxkNSvxQ4uHd//cjVsv2imxFGckGmoxFxUnAgBPWbxmcgIAAA== X-Env-Sender: julien.grall@arm.com X-Msg-Ref: server-3.tower-21.messagelabs.com!1466594145!19687929!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 20201 invoked from network); 22 Jun 2016 11:15:45 -0000 Received: from foss.arm.com (HELO foss.arm.com) (217.140.101.70) by server-3.tower-21.messagelabs.com with SMTP; 22 Jun 2016 11:15:45 -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 33F8746E; Wed, 22 Jun 2016 04:16:29 -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 97CC33F213; Wed, 22 Jun 2016 04:15:41 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xen.org Date: Wed, 22 Jun 2016 12:15:20 +0100 Message-Id: <1466594130-19251-6-git-send-email-julien.grall@arm.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1466594130-19251-1-git-send-email-julien.grall@arm.com> References: <1466594130-19251-1-git-send-email-julien.grall@arm.com> Cc: Julien Grall , sstabellini@kernel.org Subject: [Xen-devel] [PATCH v4 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. *