From patchwork Tue May 14 12:21:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 164153 Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp2552218ili; Tue, 14 May 2019 05:23:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqxCOHGwmg83xacrzW17b4oEVy+ZgcV6dgVFmVhhgb8Qr+bk0unYpDAwcP0I4X0IPWAOPR6G X-Received: by 2002:a24:5255:: with SMTP id d82mr3523475itb.104.1557836594969; Tue, 14 May 2019 05:23:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557836594; cv=none; d=google.com; s=arc-20160816; b=jSYqz8CubTQKnAK0utggb8l2rAFg8fCynO8yTEBQhzYXGk8EPTtEyjd2wxHIoLiGmC bhohRaDpnVnzSXanwiojodrttyq8bQTiMZ3SM8NQT0Dm2wuolM7HS27IHn4VKgpV32VE S6Y60BJwTV8/qd0Xc8Z7P8ExQKb5I+Pgj4xBH5MknCB7R37jDA/so1j3gXzOcKKoyrSF imab0GsOJ1muaTJm2oXolaoQg/zoJSyvV8Izy3+d6FDjr8Lmorud61KrOKGppLr2knp2 nB4O/lL/F/Fvgokq/rah1TutZqZaMt1sBEFzTQSEt7WyfO+Yxq9ct9V2TCnUg0Ys9Mw1 rDjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-unsubscribe:list-id :precedence:subject:references:in-reply-to:message-id:date:to:from; bh=0IYOeOo+2lNCD8Y0PLPTB6wZUjE3dFZyctv6YK1o+8g=; b=fnJLlM5J+8aDGEYRYNBlGvmk9oK0Kdrzu0pM+LJFD2H728R/A68pVS6ixdvobclErU YJTPxWUcZe6w//2pju9ODCYDkFTxaqS4pTfKAeCaPcppLi94ydTWy8GVa1WSj20JePxU gFdOlDRLTRzB8q48+SKufeTx3pFGqrCZc/cv/Uw0qHLxOH2+H6SDq79ru0/0+nAXkivl ohD+F+3ORMHT81C6bAqZfA8z/InTOXMdmvlRDRMIFcYj+hCsTkovm38rIeFDw7IDkOW0 JqanPlfAYebf1Onbd2gQ6MnezbwgT6icEe9qF9KgUwKKunxJ10Ym1T0AZto5j03wL81b 9xPA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org. [192.237.175.120]) by mx.google.com with ESMTPS id v6si2909275ion.63.2019.05.14.05.23.14 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 14 May 2019 05:23:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hQWRn-0000Kf-FC; Tue, 14 May 2019 12:22:19 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hQWRl-0000HK-GQ for xen-devel@lists.xenproject.org; Tue, 14 May 2019 12:22:17 +0000 X-Inumbo-ID: e900d312-7642-11e9-9425-ff57c8e298c2 Received: from foss.arm.com (unknown [217.140.101.70]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTP id e900d312-7642-11e9-9425-ff57c8e298c2; Tue, 14 May 2019 12:22:16 +0000 (UTC) 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 E081F15AB; Tue, 14 May 2019 05:22:15 -0700 (PDT) Received: from e108454-lin.cambridge.arm.com (e108454-lin.cambridge.arm.com [10.1.196.50]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id ADA9B3F71E; Tue, 14 May 2019 05:22:14 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xenproject.org Date: Tue, 14 May 2019 13:21:31 +0100 Message-Id: <20190514122136.28215-23-julien.grall@arm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190514122136.28215-1-julien.grall@arm.com> References: <20190514122136.28215-1-julien.grall@arm.com> Subject: [Xen-devel] [PATCH MM-PART2 v2 14/19] xen/arm32: mm: Avoid cleaning the cache for secondary CPUs page-tables X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Oleksandr_Tyshchenko@epam.com, Julien Grall , Stefano Stabellini , Andrii Anisov MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" The page-table walker is configured to use the same shareability and cacheability as the access performed when updating the page-tables. This means cleaning the cache for secondary CPUs runtime page-tables is unnecessary. Signed-off-by: Julien Grall Reviewed-by: Andrii Anisov --- Changes in v2: - Add Andrii's reviewed-by --- xen/arch/arm/mm.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/xen/arch/arm/mm.c b/xen/arch/arm/mm.c index cda2847d00..6db7dda0da 100644 --- a/xen/arch/arm/mm.c +++ b/xen/arch/arm/mm.c @@ -769,9 +769,6 @@ int init_secondary_pagetables(int cpu) write_pte(&first[first_table_offset(DOMHEAP_VIRT_START+i*FIRST_SIZE)], pte); } - clean_dcache_va_range(first, PAGE_SIZE); - clean_dcache_va_range(domheap, DOMHEAP_SECOND_PAGES*PAGE_SIZE); - per_cpu(xen_pgtable, cpu) = first; per_cpu(xen_dommap, cpu) = domheap;