From patchwork Wed Apr 17 17:58:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 162411 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp5795912jan; Wed, 17 Apr 2019 10:59:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqzWduoKqxR+inio5D5b5nje+cZA2AiONtx/LIgze1DLy3XikxyGxnU509tCHnWaquZ9ufCg X-Received: by 2002:a25:9941:: with SMTP id n1mr57281806ybo.422.1555523991030; Wed, 17 Apr 2019 10:59:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555523991; cv=none; d=google.com; s=arc-20160816; b=bRBoKMPlmaZ+ul0p/G3J4/THWjsoF+hqs9hde3BqxrzOa8muyRa/twvfOkqeN00yR7 K9Pwn+pJiURNsIf/WFd/O90Z98Z4EuVM+Yv2GwEIwil92IDj1pJL9IH8NOsOj7JZECWs 1wJszb+9VB+9O4RcDE1/1fgXWnLwH8bxhd4yk5Fcmb6LbNZmmmpeBdVjomBBx0qA5IFr IczypakMOZcZ7QLmPYLaE4NvDjkWO4arhojEfM/kP7Wdy6e4iM5IxxpHPB+dvX/pUmDi vBzedOuhFXAi1gIfN5uyRy82vi93/oRX0f6j2MsfSSnJzeaqRqFX1RAm2vqdzj9rkodm YCTw== 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=G1VO6GMQjWTOWatVvXTp2Kpa2AH+ldQc4H/lqoebVTM=; b=nSqPsqaIa2ctHYbh43rc1QEvmnAeQN/EYp5u1WGU/eOTHIiryrDlLJc/YDiZMxttCk LC2ZXDJYjBD879aqYTJPRVxtzGyJXOLeyaHkh/EH35N/+7mNgF87POXRRVB50ve9Fh+X pnMtvncptPOhaUQVEJTtHZ3rmuF+CAZ1E4QmX9Np7/yAUn/gJWbLUyjDvSqY4QGD7j6c wfQ6BlgQp3n9yVaDWncRKXwAY+dfk3heVOV9wvcMA2yOyq4Dep+51rw+EJGy2Cfu+z69 mTaJlHPqGbTW5px6DnPXMTI4uDzyKZIFLKucGe+kGlkSdBV9yptofb3ilCRrC4Vtl6Cj ZdCQ== 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 s6si36373650ybg.389.2019.04.17.10.59.50 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 17 Apr 2019 10:59:51 -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 1hGopE-00048o-0u; Wed, 17 Apr 2019 17:58:24 +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 1hGopC-00048h-Pd for xen-devel@lists.xenproject.org; Wed, 17 Apr 2019 17:58:22 +0000 X-Inumbo-ID: 6375ee5c-613a-11e9-9f7e-c3b2b0d1aa89 Received: from foss.arm.com (unknown [217.140.101.70]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTP id 6375ee5c-613a-11e9-9f7e-c3b2b0d1aa89; Wed, 17 Apr 2019 17:58:21 +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 4E47E15AB; Wed, 17 Apr 2019 10:58:21 -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 3BB863F59C; Wed, 17 Apr 2019 10:58:20 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xenproject.org Date: Wed, 17 Apr 2019 18:58:08 +0100 Message-Id: <20190417175815.16905-1-julien.grall@arm.com> X-Mailer: git-send-email 2.11.0 Subject: [Xen-devel] [PATCH 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 , sstabellini@kernel.org, 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. 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(-)