From patchwork Tue May 14 12:24:51 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 164185 Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp2555149ili; Tue, 14 May 2019 05:26:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqzx/3ddCAYJU0vOdH2l0mp616f3sVav5YBWKkJIVfA/F1NrAyq9IQNK5zNRfEipumXaSZWS X-Received: by 2002:a5d:9c85:: with SMTP id p5mr1686309iop.13.1557836776204; Tue, 14 May 2019 05:26:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557836776; cv=none; d=google.com; s=arc-20160816; b=pWZiz4AxRR1/kH2PalvxSbo1czeYZ4eNLFuh5VZLuJK7Wj5ONqbFGXgESEuTIC9G8P vW6slrOe8NiOasFuy/EYJrreLg8ly6iwEQewa4hTiq1vM+XTLCeXYos6UJxoMd/bHmys I+HcU2N7zVO6ovirwRqx0XGZQlOxhx+hEvsFbV06xulMqPhK0zwL22pv5hxMRpHG/hhC KbbWFeze8QEmxq0PfCSF+U+PyBwul2JmDsnTasGXur/snCN5Oiz6aN4XCgNMms3VXREt LbsYpbPuHoR1fSDQwIRbtbI8Nr5obsXK20mMaqj6+KMBksk2K/GUSMs3L3U8B8GxFUcA WA2w== 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=oYRgqGlPrtEwqK3h+tbLrJnXI0OR2vNM2lvVk8J3lAmgLcYjQhkduRak1unAfF/HYc mz7zgPohdE0yL61iz5TI1QASNrYqm5TprZ4JUovRk083GSEyYCMOhIOq5GqPfcqvH8Rb ZOW6+Wv1rxHv/LeDZG5ZHdaTZZ2j7NAzxOgZ3bCR2+i3JZYaZnIvHqU90Yfgf3SaSEIy 6X/ld6MpaIs998t4QzkhLYvD4YwIfyoUQ0EFEzByPwJxqtVPgLEmoV6oqXpE1cJdk5oH NL1irYwVGBouWoz6Zy6QuQMF0DPM8EbOIc5tea7hSyfThGC4fQF9eAfkLOBjUjX9cyoO LQew== 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 t11si1433982itb.34.2019.05.14.05.26.16 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 14 May 2019 05:26:16 -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 1hQWUn-0002rr-K3; Tue, 14 May 2019 12:25:25 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hQWUm-0002pk-9m for xen-devel@lists.xenproject.org; Tue, 14 May 2019 12:25:24 +0000 X-Inumbo-ID: 589e5fd1-7643-11e9-8980-bc764e045a96 Received: from foss.arm.com (unknown [217.140.101.70]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTP id 589e5fd1-7643-11e9-8980-bc764e045a96; Tue, 14 May 2019 12:25:23 +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 3897A15AD; Tue, 14 May 2019 05:25:23 -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 057143F71E; Tue, 14 May 2019 05:25:21 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xenproject.org Date: Tue, 14 May 2019 13:24:51 +0100 Message-Id: <20190514122456.28559-15-julien.grall@arm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190514122456.28559-1-julien.grall@arm.com> References: <20190514122456.28559-1-julien.grall@arm.com> Subject: [Xen-devel] [PATCH MM-PART2 RESEND 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;