From patchwork Thu Oct 18 13:20:47 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 149140 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp1972858lji; Thu, 18 Oct 2018 06:23:35 -0700 (PDT) X-Google-Smtp-Source: ACcGV60rn7nuKZs8bOH9ZHA9LLsW/F/zlcH/8ZvaFmpt4zs+6Dz9VfI1YVJpRAAjcDAItyb7YmJX X-Received: by 2002:a25:d850:: with SMTP id p77-v6mr5150701ybg.116.1539869015092; Thu, 18 Oct 2018 06:23:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539869015; cv=none; d=google.com; s=arc-20160816; b=u0+2JdsRLU6JzdCZCGgEWXoBBjj0Oa2JxC/eteGOTrTdlVtOB3euoP+AmSdJ2HAzBI 7dEUQ23+GBlrtkgU8cbhsqtIzAr/b6Mpaq6i52Gjk31OX4Jfn/3zkjXsD3qDwVIPkF37 /NrQYbbyu6kgsC7wwjPgO7dMdrbXZIpy7CxVN450pZi/ikBSi8f2BOmDqa3D5sy9AoYz /5H+6ioc9tUI8HDmrRRCu5MbPyXUZ8Hr72bk+r4XrQxJMwO06nNNFvp0bYqFRypN3Ysn PKcSRMgni6v0iKsk7SCF9aztYVPR2wRzR1pt5Kdv6+7wvBFDuoUAUnmw7D19lRTpy0qz nrUw== 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=VJBUZxsES5mVvMJO9bYox1ZcUcdq3DMa5NO+LnMwN9s=; b=nGpMmL98Jkq3dETTo4wd38z3tdoYnEpG6pipKXkZgFs6ViGiV8UXP7DNUasRVFJOF1 Z5fLHnYWkRG6OvmWnTayp6EEIjAF/Wrrb/5CowVhYzzQ1RjkTup4KYvdC8B7/sXZrp50 kDVbviey5nP6UI6JRnu4nr1JftAveJ1yBgZ3HmlRFn9XjQJ0nK3WNYxmvIiGy/4zLKhQ +1qTav9UCp21aAx1o9g5BXPo1tFU27w5ghFmn0VKw5ySsffWuWhQUTpmuL8zw3Iw4x1I nE3vOjkSSN4DZO32fpjCfJqw1YJgbWUCvF0suYWfCnjUYintPa1FjM77KOvwED01cBJv 71qA== 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 i10-v6si409889ywi.203.2018.10.18.06.23.34 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 18 Oct 2018 06:23:35 -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 1gD8Eq-0002z9-QE; Thu, 18 Oct 2018 13:21:20 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1gD8Eo-0002yu-VF for xen-devel@lists.xen.org; Thu, 18 Oct 2018 13:21:18 +0000 X-Inumbo-ID: e48b2497-d2d8-11e8-a6a9-d7ebe60f679a Received: from foss.arm.com (unknown [217.140.101.70]) by us1-amaz-eas1.inumbo.com (Halon) with ESMTP id e48b2497-d2d8-11e8-a6a9-d7ebe60f679a; Thu, 18 Oct 2018 13:22:42 +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 DBF9A341; Thu, 18 Oct 2018 06:21:16 -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 1EF683F59C; Thu, 18 Oct 2018 06:21:15 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xen.org Date: Thu, 18 Oct 2018 14:20:47 +0100 Message-Id: <20181018132109.31192-1-julien.grall@arm.com> X-Mailer: git-send-email 2.11.0 Subject: [Xen-devel] [PATCH 00/22] xen/arm: Bunch of clean-ups 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: Julien Grall , sstabellini@kernel.org MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" Hi all, This patch series is a bunch of clean-ups I have collected the past few weeks. The main goal is to reduce the scope of some includes and reduce the size of processor.h by moving some parts in new/current headers. Cheers, Julien Grall (22): xen/arm: traps: Constify show_registers parameters xen/arm: regs: Convert guest_mode to a static inline helper xen/arm: Remove __init from prototype xen/arm: bugs: Move do_bug_frame to traps.h xen/arm: Consolidate CPU identification in cpufeature.{c,h} xen/arm: Move VABORT_GEN_BY_GUEST to traps.h and turned into inline xen/arm: gic-3: Remove unused includes xen/arm: gic-v3: Re-order includes in alphabetical order xen/arm: Move HSR defines in a new header hsr.h xen/arm: Move SYSREG accessors in sysregs.h xen/arm: Move out of processor.h traps related variable/function xen/arm: Only include stringify.h when necessary xen/arm: Only include vreg.h when necessary xen/arm: Remove unnecessary includes in asm/vgic.h xen/arm: Remove unnecessary includes in asm/mmio.h xen/arm: Remove unnecessary includes in traps.c xen/arm: Remove unnecessary includes in asm/p2m.h xen/arm: Remove unnecessary includes in asm-arm/acpi.h xen/arm: Remove unnecessary include in asm-arm/atomic.h xen/arm: Remove unnecessary includes in asm/current.h xen/arm: platform: Don't include p2m.h in exynos5 and omap5 xen/arm: Move vgic_* helpers from gic.h to vgic.h xen/arch/arm/Makefile | 1 - xen/arch/arm/acpi/lib.c | 1 + xen/arch/arm/arm32/entry.S | 1 + xen/arch/arm/arm32/proc-v7.S | 1 + xen/arch/arm/arm32/traps.c | 1 + xen/arch/arm/arm64/traps.c | 1 + xen/arch/arm/bootfdt.c | 2 +- xen/arch/arm/cpu.c | 68 ------- xen/arch/arm/cpuerrata.c | 1 + xen/arch/arm/cpufeature.c | 42 ++++ xen/arch/arm/device.c | 1 + xen/arch/arm/gic-v3-lpi.c | 1 + xen/arch/arm/gic-v3.c | 28 ++- xen/arch/arm/platforms/exynos5.c | 1 - xen/arch/arm/platforms/omap5.c | 1 - xen/arch/arm/psci.c | 1 + xen/arch/arm/traps.c | 25 ++- xen/arch/arm/vcpreg.c | 1 + xen/arch/arm/vgic-v2.c | 1 + xen/arch/arm/vgic-v3-its.c | 1 + xen/arch/arm/vpl011.c | 1 + xen/include/asm-arm/acpi.h | 8 +- xen/include/asm-arm/alternative.h | 3 +- xen/include/asm-arm/arm32/processor.h | 62 ------ xen/include/asm-arm/arm32/sysregs.h | 75 ++++++++ xen/include/asm-arm/arm64/hsr.h | 122 ++++++++++++ xen/include/asm-arm/arm64/processor.h | 27 --- xen/include/asm-arm/arm64/sysregs.h | 132 +++---------- xen/include/asm-arm/atomic.h | 2 - xen/include/asm-arm/bug.h | 4 - xen/include/asm-arm/cpregs.h | 2 - xen/include/asm-arm/cpufeature.h | 134 +++++++++++++ xen/include/asm-arm/current.h | 2 - xen/include/asm-arm/device.h | 10 +- xen/include/asm-arm/event.h | 1 - xen/include/asm-arm/gic.h | 3 - xen/include/asm-arm/hsr.h | 217 +++++++++++++++++++++ xen/include/asm-arm/mmio.h | 4 +- xen/include/asm-arm/p2m.h | 3 - xen/include/asm-arm/page.h | 1 + xen/include/asm-arm/percpu.h | 8 +- xen/include/asm-arm/platform.h | 7 +- xen/include/asm-arm/processor.h | 352 +--------------------------------- xen/include/asm-arm/regs.h | 22 ++- xen/include/asm-arm/setup.h | 9 +- xen/include/asm-arm/sysregs.h | 22 +++ xen/include/asm-arm/time.h | 2 + xen/include/asm-arm/traps.h | 15 ++ xen/include/asm-arm/vgic.h | 9 +- xen/include/asm-arm/vpl011.h | 1 - xen/include/xen/device_tree.h | 5 +- 51 files changed, 732 insertions(+), 713 deletions(-) delete mode 100644 xen/arch/arm/cpu.c create mode 100644 xen/include/asm-arm/arm32/sysregs.h create mode 100644 xen/include/asm-arm/arm64/hsr.h create mode 100644 xen/include/asm-arm/hsr.h create mode 100644 xen/include/asm-arm/sysregs.h