From patchwork Mon Apr 22 16:49:17 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 162605 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp2801327jan; Mon, 22 Apr 2019 09:51:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqwsr3TdOj3R7Kg0YZ4Z7TBzYzrBUOBMrMgmfJftZt1FVjrmfhWA24/f2qB+VeFgXMZ8I1s+ X-Received: by 2002:a81:8207:: with SMTP id s7mr16399938ywf.402.1555951879130; Mon, 22 Apr 2019 09:51:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555951879; cv=none; d=google.com; s=arc-20160816; b=z/O1fuxVvy+NOJG5nycGm/Ezj6ko08RF3V2/ULbCtLk994p0QWh44PjAkfnp8Kiekh Pgeq/idhxl+L6G0McAoY9J8uRBXBzwmygdjVmKzCVS1iB7wuRLX/MwASln4J5RY1ak9r vHm/0/Lav0gQF2Kz3rVxgsvoq0YXYA3Biiso989RDTlH5tnqOHVnWquGf7IjDUQdo12d qmUrCFmXhQuFUZL34EBmJLD3LFBsbvh36czg6Tz1D9K295ghd3imf5B5GyxTYnJQZRls IXZQ40aFiYOqdklRU6rY63Dymk+5yYmE1R+1lUIlFjh/JeIT0CjF7MKjNQKtWCjx7V/w p09Q== 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=tbvgnuAzpRLNZutf/Cm/dT3Cr8CIOIQM96l+4B6XIFw=; b=EkNV/I7YKxpK8Or5hyPSoKtqWzYXcSF8uoUVTMya23fDaToZqtzLhHb1QjpP/GWQgd H5kb6DuIKTN5IV/F+aTAtINsXUaK3i68RlqC11vLl2/MNsZABWqB+HxILwq0HVgK8Vdb EsR4hqPpWXFyOvKDXfU7OVuqcDQwwlVEpSwpg58JIeZPbnPedEiKzVdOcu2YENeDO12y WcbT74CaPrdtYZxeBZX0NYBDvUwUoqNnBTzhtqkHpzfn1OeMjq1kmrpbUz2yj92Jpcnj CjRB6BwGTL1ZsMthn1OmAAlUiYHd01QcCpLr8r7HqsREpXVctDQs48ssVuOSlDFykN1O hFxw== 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 79si8939441ywo.318.2019.04.22.09.51.18 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 22 Apr 2019 09:51:19 -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 1hIc8f-0004QZ-D9; Mon, 22 Apr 2019 16:49:53 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hIc8e-0004QU-DS for xen-devel@lists.xenproject.org; Mon, 22 Apr 2019 16:49:52 +0000 X-Inumbo-ID: a54112ab-651e-11e9-92d7-bc764e045a96 Received: from foss.arm.com (unknown [217.140.101.70]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTP id a54112ab-651e-11e9-92d7-bc764e045a96; Mon, 22 Apr 2019 16:49:50 +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 64B73374; Mon, 22 Apr 2019 09:49:50 -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 5044D3F557; Mon, 22 Apr 2019 09:49:48 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xenproject.org Date: Mon, 22 Apr 2019 17:49:17 +0100 Message-Id: <20190422164937.21350-1-julien.grall@arm.com> X-Mailer: git-send-email 2.11.0 Subject: [Xen-devel] [PATCH 00/20] 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: sstabellini@kernel.org, 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 next-4.13 (it is staging + patch queued for Arm): git://xenbits.xen.org/people/julieng/xen-unstable.git branch mm/part2/v1 Cheers, [1] https://lists.xen.org/archives/html/xen-devel/2019-04/msg01432.html Julien Grall (20): xen/const: Introduce _BITUL and _BITULL xen/arm: Rename SCTLR_* defines and remove unused one xen/arm: processor: Use _BITUL instead of _AC(1, U) in SCTLR_ defines xen/arm: Rework HSCTLR_BASE xen/arm: Rework secondary_start prototype xen/arm: Remove parameter cpuid from start_xen 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: Use the shorter version __aligned(PAGE_SIZE) to align page-tables 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/arm: Allow cleaning the directory even when CONFIG_EARLY_PRINTK is set xen/arch/arm/Makefile | 5 +++ xen/arch/arm/Rules.mk | 7 ---- xen/arch/arm/arm32/head.S | 33 ++++----------- xen/arch/arm/arm64/head.S | 40 +++++------------- xen/arch/arm/guest_walk.c | 2 +- xen/arch/arm/kernel.c | 3 +- xen/arch/arm/mm.c | 57 +++++++++++--------------- xen/arch/arm/setup.c | 7 ++-- xen/arch/arm/smpboot.c | 4 +- xen/arch/arm/traps.c | 6 +-- xen/include/asm-arm/asm_defns.h | 5 +++ xen/include/asm-arm/p2m.h | 4 +- xen/include/asm-arm/processor.h | 91 +++++++++++++++++++++++++++++++---------- xen/include/xen/const.h | 3 ++ 14 files changed, 137 insertions(+), 130 deletions(-)