From patchwork Wed May 8 16:15:56 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 10936233 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B70AD1398 for ; Wed, 8 May 2019 16:18:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A64BD26490 for ; Wed, 8 May 2019 16:18:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9AE922821F; Wed, 8 May 2019 16:18:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4BF4C26490 for ; Wed, 8 May 2019 16:18:05 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hOPEo-0008EB-NF; Wed, 08 May 2019 16:16:10 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hOPEn-0008E6-KP for xen-devel@lists.xenproject.org; Wed, 08 May 2019 16:16:09 +0000 X-Inumbo-ID: 967c3d36-71ac-11e9-843c-bc764e045a96 Received: from foss.arm.com (unknown [217.140.101.70]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTP id 967c3d36-71ac-11e9-843c-bc764e045a96; Wed, 08 May 2019 16:16:08 +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 453AB374; Wed, 8 May 2019 09:16:08 -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 353553F238; Wed, 8 May 2019 09:16:07 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xenproject.org Date: Wed, 8 May 2019 17:15:56 +0100 Message-Id: <20190508161603.21964-1-julien.grall@arm.com> X-Mailer: git-send-email 2.11.0 Subject: [Xen-devel] [PATCH v2 0/7] xen/arm: TLB flush helpers rework 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@epam.com MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP Hi all, I spent the last few months looking at Xen boot and memory management to make it simpler, more efficient and also more compliant in respect of the Arm Arm. The full rework is quite consequence (already 150 patches and I haven't yet finished!), so I am planning to send in smaller part over the next few weeks. In this first part, I focus on reworking how we flush the TLBs in Xen. Cheers, Julien Grall (7): xen/arm: mm: Consolidate setting SCTLR_EL2.WXN in a single place xen/arm: Remove flush_xen_text_tlb_local() xen/arm: tlbflush: Clarify the TLB helpers name xen/arm: page: Clarify the Xen TLBs helpers name xen/arm: Gather all TLB flush helpers in tlbflush.h xen/arm: tlbflush: Rework TLB helpers xen/arm: mm: Flush the TLBs even if a mapping failed in create_xen_entries xen/arch/arm/mm.c | 69 ++++++++++++++++++++++----------- xen/arch/arm/p2m.c | 6 +-- xen/arch/arm/smp.c | 2 +- xen/arch/arm/traps.c | 2 +- xen/include/asm-arm/arm32/flushtlb.h | 71 +++++++++++++++++++--------------- xen/include/asm-arm/arm32/page.h | 48 ++++------------------- xen/include/asm-arm/arm64/flushtlb.h | 75 ++++++++++++++++++++---------------- xen/include/asm-arm/arm64/page.h | 49 +++-------------------- xen/include/asm-arm/flushtlb.h | 38 ++++++++++++++++++ xen/include/asm-arm/page.h | 38 ------------------ 10 files changed, 184 insertions(+), 214 deletions(-)