From patchwork Tue May 14 12:11:24 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 164135 Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp2540539ili; Tue, 14 May 2019 05:12:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqzh4IrrJVMDRvY93tKjcD6ZqGNBo/HeTTPcN+Q2fWJ9YlwPET67j15ixQ7hq9YaT0XWV66A X-Received: by 2002:a6b:8fd1:: with SMTP id r200mr10754384iod.142.1557835978574; Tue, 14 May 2019 05:12:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557835978; cv=none; d=google.com; s=arc-20160816; b=xKuypgiMsBFLoO9vkTaXTzwZUymsfPjWWVV890zN6grJSx53r79wB6RU7sw9jo+1vU ePRc+H1vlAiLEdUpqRpadj8+bo7slR41SYFie9T8LqOwJ+wdOT815JidxxmSSHR8N9BT IffFiGSPrg+ZfskuJvm+Ys28hXYWYyZ50IpxURTAmFPj/9PIw44uEMRZowxl4pwaHN+J YVF0yG8NGdIeL2j/c0nGWrfBVVUZ+XiZsEuBGeJNMy5LHPdeysnu0AH7Ww+FlsTfMMfm GjmnZgxbMTaqXEoJ+NzcLMpTL59IC9jxKUTLIJxACFg7kvhm5FvvuVUTcpL7NlAL8Y56 hHjQ== 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:message-id:date:to:from; bh=AN1JOvAjAx8Qfjoi4kEURHVVX+1+OfFNIszcjwtAGsM=; b=OB0eHKVV5WAsLvgtJWHTd5ISYjybicorg5/Wi1MOZE8epI4GHH8JfYsh83t18YuZ5w cvGPecsdS1HS+iJw3DDzmpPPegewowvKtq91MFZvHvY9v9msvo3OLrYbXUpoSM1hfNVM /+PLYuQ+NALMzgvdwv5vXVj8nHo5SbI1yuhjGjSQoP+Rn8VWO7GLbHutvjERpl3syzI4 4f4edHGfQY7hL5HYZXw4vHZu8iezH2+qKvN4eUH8O0JjoK2/I77XVn5zqxlVUjMLF7Ys /qylIfTP6S+hYiYLASLJyYY99EzPUK6vzKLcCymOODBylhZJdcYjsyGhe+g14HA0qBsC 9LxA== 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 m84si9126537ioa.89.2019.05.14.05.12.58 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 14 May 2019 05:12:58 -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 1hQWHW-0006DZ-Eg; Tue, 14 May 2019 12:11:42 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hQWHV-0006DJ-8H for xen-devel@lists.xenproject.org; Tue, 14 May 2019 12:11:41 +0000 X-Inumbo-ID: 6d94a1e0-7641-11e9-8980-bc764e045a96 Received: from foss.arm.com (unknown [217.140.101.70]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTP id 6d94a1e0-7641-11e9-8980-bc764e045a96; Tue, 14 May 2019 12:11:39 +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 5309A341; Tue, 14 May 2019 05:11:39 -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 40E6A3F71E; Tue, 14 May 2019 05:11:38 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xenproject.org Date: Tue, 14 May 2019 13:11:24 +0100 Message-Id: <20190514121132.26732-1-julien.grall@arm.com> X-Mailer: git-send-email 2.11.0 Subject: [Xen-devel] [PATCH MM-PART1 v3 0/8] 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" 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. The main addition for this version is to prevent Xen booting on AIVIVT instruction caches (see patch #1). For all the other changes, see each patch. Cheers, Julien Grall (8): xen/arm: Don't boot Xen on platform using AIVIVT instruction caches 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/setup.c | 5 +++ 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 ------------------ xen/include/asm-arm/processor.h | 5 +++ 12 files changed, 194 insertions(+), 214 deletions(-)