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: 164158 Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp2552279ili; Tue, 14 May 2019 05:23:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqzJ7kBY6oMwsJ5jKkiShOGJS9DDxbRPis9HtWQbr5DwhlfXZ+9EBAB67yypc6s9rfo0gkC1 X-Received: by 2002:a6b:790a:: with SMTP id i10mr9325884iop.2.1557836597468; Tue, 14 May 2019 05:23:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557836597; cv=none; d=google.com; s=arc-20160816; b=jHvYVnqLFBF4iWmAzS9ZA6q5QzgUGafRp40x6BzwPJG2yiDL2qq7lXZItk1pn5KGt0 5otjb6qRj0SdsMe3foodFEszx9gdtDKmVopMp+XoHeSoUaHrzNheFnHYp1jZSHRkIE5h 6rihWN8F72pmSSrhIO/J21LtEeNZnkcLiYWV5QWflXn1kcfWalN5ExSd1+yRphjK0ix+ PEdUhfluG7DzA4nldsDBZSSzikenv4yp0vr1j6gunRErtiimOnMyLM3Pwb+ATN9zPTuY vucEMjw+gjEtcjxVLOicWpW/i64jrB6JuGX5WV4FkQOm9K9945CEBXHckeV13Y9g2eRr tZZg== 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=oZi5bQrwAH3vINaasrVnppCncOygIXVW+7wmYlY9XD0=; b=HrPbg7/UC01eW11rOqI7SD6K/sU6TgUfEqYBs1vc3QituDp9uYkyW0V9ATFceH1oR8 U3tjauhy5WDO7ie5XcMTXXaw9TdbUAi/FrV9v9mrDLkjQi6E3fsud8jf0Dcxk37VY5xU 657SVq/l5XDuLehpwsTJx2W53stxCCR10kehwGoTnfOWd5HGbY3SQf+f/Qrf/uLSkJs7 lDYMyNO5V5eErsbKD2kF581FYJXu/Oxr1YJPhhSiYOfSm9/1He9l/gt5StC6kYR5G+Ql 0w2fxH7XJ9B0A33TLd+S7Y3Dc1+km49n0N64pXEAOgksy8qGMNlhwJ5bE1zQHS3pPtZ+ h/MA== 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 i141si1475969iti.137.2019.05.14.05.23.17 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 14 May 2019 05:23:17 -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 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" 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(-)