From patchwork Tue May 14 12:21:09 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 10942869 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 A0E8F1390 for ; Tue, 14 May 2019 12:23:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8E1BC285A1 for ; Tue, 14 May 2019 12:23:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 826C2286A7; Tue, 14 May 2019 12:23:40 +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 1D9E6285A1 for ; Tue, 14 May 2019 12:23:40 +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 1hQWRG-00086Q-GM; Tue, 14 May 2019 12:21:46 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hQWRF-00086G-1M for xen-devel@lists.xenproject.org; Tue, 14 May 2019 12:21:45 +0000 X-Inumbo-ID: d5bfb571-7642-11e9-8980-bc764e045a96 Received: from foss.arm.com (unknown [217.140.101.70]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTP id d5bfb571-7642-11e9-8980-bc764e045a96; Tue, 14 May 2019 12:21:43 +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 8C7DA341; Tue, 14 May 2019 05:21:43 -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 772ED3F71E; Tue, 14 May 2019 05:21:41 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xenproject.org Date: Tue, 14 May 2019 13:21:09 +0100 Message-Id: <20190514122136.28215-1-julien.grall@arm.com> X-Mailer: git-send-email 2.11.0 Subject: [Xen-devel] [PATCH MM-PART2 v2 00/19] xen/arm: Clean-up & fixes in boot/mm code 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: Stefano Stabellini , Andrii_Anisov@epam.com, Konrad Rzeszutek Wilk , George Dunlap , Andrew Cooper , Ian Jackson , Tim Deegan , Oleksandr_Tyshchenko@epam.com, Julien Grall , Jan Beulich , Wei Liu MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP Hi all, This is the second part of the boot/memory rework for Xen on Arm. This part contains mostly clean-up & fixes found during the rework. The first part of the rework is "xen/arm: TLB flush helpers rework" [1]. For convenience, I provided a branch with all the patches applied based on staging: git://xenbits.xen.org/people/julieng/xen-unstable.git branch mm/part2/v2 Cheers, [1] https://lists.xenproject.org/archives/html/xen-devel/2019-05/msg01109.html Julien Grall (19): xen/const: Extend the existing macro BIT to take a suffix in parameter xen/arm: Rename SCTLR_* defines and remove unused one xen/arm: processor: Use BIT(.., UL) instead of _AC(1, U) in SCTLR_ defines xen/arm: Rework HSCTLR_BASE xen/arm: Remove parameter cpuid from start_xen xen/arm: Rework secondary_start prototype xen/arm64: head: Remove unnecessary comment xen/arm64: head: Move earlyprintk messages in .rodata.str xen/arm64: head: Correctly report the HW CPU ID xen/arm32: head: Correctly report the HW CPU ID xen/arm32: head: Don't set MAIR0 and MAIR1 xen/arm32: head: Always zero r3 before update a page-table entry xen/arm32: mm: Avoid to zero and clean cache for CPU0 domheap xen/arm32: mm: Avoid cleaning the cache for secondary CPUs page-tables xen/arm: mm: Introduce DEFINE_PAGE_TABLE{,S} and use it xen/arm: mm: Protect Xen page-table update with a spinlock xen/arm: mm: Initialize page-tables earlier xen/arm: mm: Check start is always before end in {destroy, modify}_xen_mappings xen/arm: Pair call to set_fixmap with call to clear_fixmap in copy_from_paddr xen/arch/arm/arm32/head.S | 34 ++++---------- xen/arch/arm/arm32/insn.c | 2 +- xen/arch/arm/arm64/head.S | 40 +++++------------ xen/arch/arm/arm64/insn.c | 18 ++++---- xen/arch/arm/gic-v3-its.c | 13 +++--- xen/arch/arm/gic-v3-lpi.c | 4 +- xen/arch/arm/guest_walk.c | 10 ++--- xen/arch/arm/kernel.c | 3 +- xen/arch/arm/mm.c | 62 +++++++++++++------------- xen/arch/arm/setup.c | 7 ++- xen/arch/arm/smpboot.c | 4 +- xen/arch/arm/traps.c | 6 +-- xen/arch/arm/vgic-v3-its.c | 12 ++--- xen/arch/arm/vgic-v3.c | 2 +- xen/arch/arm/vgic.c | 2 +- xen/drivers/char/meson-uart.c | 16 +++---- xen/drivers/char/mvebu-uart.c | 34 +++++++------- xen/include/asm-arm/asm_defns.h | 5 +++ xen/include/asm-arm/bitops.h | 2 - xen/include/asm-arm/gic_v3_defs.h | 4 +- xen/include/asm-arm/gic_v3_its.h | 10 ++--- xen/include/asm-arm/p2m.h | 4 +- xen/include/asm-arm/processor.h | 93 ++++++++++++++++++++++++++++++--------- xen/include/xen/const.h | 2 + 24 files changed, 201 insertions(+), 188 deletions(-)