From patchwork Tue May 14 12:24:37 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 164176 Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp2554944ili; Tue, 14 May 2019 05:26:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqwvv4GpsXIdMgMU8sKiMWncFpYyWa2Lfo9z4a0zCQZ+rCxEsu8+sp5JMb4c/JUZjgNhh6ZW X-Received: by 2002:a24:6292:: with SMTP id d140mr3093186itc.12.1557836765267; Tue, 14 May 2019 05:26:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557836765; cv=none; d=google.com; s=arc-20160816; b=ybPictq0Zkrei4R+WUjTrrKnMhhGT5b+hA9Ba1BJdGmYJ7+2/jBLtq/V++95DNiuwQ QnjrjWtSUMjHhWfJk1YX2cPAzrWDcNxdAntqLrsczc0xoHZfsM1NmDrDqpq0ag0v7105 Fgl9F0SrE7iR2mX18//uWQYSQXFb4X8MNsu2Bf8IofR3lfj+kl27FtO33cZ9SJpiiWmN +SkK+QdKD5Qc/J838M1dZXwtfenZT59XlKEebozGhzB65/L1yzM92qJ5EgypEbJRwseO eYM41POPnUENou4KBKljxhKFnKGA7zdzjszEH9yS9JRawbimy4+elk+TYn4wY9X28fwA CGpg== 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=MxasULl3GXGqwnljDAg5eZZP7scSQUWrDSUda2SD3whnnfEm3dyJaKyewBza1+ikI2 bBX6Hs/hdw8eWxZkEZRMFApPJGp5BinMgI7DWb+K34DNlbVcEujj3ei8fRCzBtSAcmlg CR0IG4QGcx4KZM13zg3ecFIWY3KxvEeXg/WxhZLkOv12CrKS1FMdUrYWPJPaiPoLpmNc Zkq+HooMzONSdMKDoUj888YWAaFuD+tHQ+ra0thXHkPSRIuMkNVSvfeuXTlCVBUv6dMr C4aqCOeXg8wxKIms8+cLmkDQgohE89qEB07+CX/nIxvGP/MdqFHXSEPjQ631/xszRZLz FuSw== 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 x15si2124171iox.77.2019.05.14.05.26.05 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 14 May 2019 05:26:05 -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 1hQWUT-0002TA-AM; Tue, 14 May 2019 12:25:05 +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 1hQWUS-0002Ss-7A for xen-devel@lists.xenproject.org; Tue, 14 May 2019 12:25:04 +0000 X-Inumbo-ID: 4c3bddc8-7643-11e9-aedc-03ad7fad4aa0 Received: from foss.arm.com (unknown [217.140.101.70]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTP id 4c3bddc8-7643-11e9-aedc-03ad7fad4aa0; Tue, 14 May 2019 12:25:02 +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 5E843341; Tue, 14 May 2019 05:25:02 -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 4A6323F71E; Tue, 14 May 2019 05:25:00 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xenproject.org Date: Tue, 14 May 2019 13:24:37 +0100 Message-Id: <20190514122456.28559-1-julien.grall@arm.com> X-Mailer: git-send-email 2.11.0 Subject: [Xen-devel] [PATCH MM-PART2 RESEND 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(-)