[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v4 02/14] xen/asm-generic: introduce generic device.h
- To: Oleksii Kurochko <oleksii.kurochko@xxxxxxxxx>
- From: Jan Beulich <jbeulich@xxxxxxxx>
- Date: Mon, 27 Nov 2023 15:31:41 +0100
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=O3o01JpG/ONgP3fXyjJdNK7Uj9Vrj5CkGgyQegYFhO0=; b=dTczqZYm5vPeYW8qMzxiaHI+UU72G/rCOXD72muFNl/15k7qYuz3A8N9Ouk/gzsE55oRRoPbOHWJJKaEtJPzcw/K7g/aud86fQGxkkRw2T5TfcJIHCaGcZWewurZgI+OmcC5SFntvi/ldyyV/oeiacazU3LRfBvdUcVdYpYM3L2cxGHATuO6dfzDttCKpHOpAkcWqgAMSZg7iOzFsGbuL0wiwTFIslKy6PRQpYpFMNOMAffXyimHvOWHy3ny7aOUvX9fq/7exSGr8a/siODioJUjxJ9EMzPUuGPyiHm8rJSdD+ERKlVVfYDgKnl2MhUmFZOBRMgNpj+bmrx1eVjmQg==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Dk1V/AChgWxEMf83CoPP53IfVOUQdSg4q2WdNHEF6OjTZMDJVUXlJjegfLjAYA1d186QWydVbkpjZpmrvaj/ZBPVdFh287ooioAX++HCeCgUdc5bRB0f0YbadmbEp64WrevFvPt5lC8uvraPzYolvdMQDJm6E0RzFSvd1zOKTk3YpKAJO0PMXqn7RPrvRaHGD+hnbBwbeYnKZTKtW0Cpf38k1ripcY2HDWahkK3mSZXIUa1oRUmNeY8DuNxDgDWHrZHtb0hzNE7bGhmSs84qdiDozDaESiWlO6EEd4M2uN6pAMXEAQ9Fz5e9dPqdug3YugtH9MW7gYCaki61LrwPMg==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
- Autocrypt: addr=jbeulich@xxxxxxxx; keydata= xsDiBFk3nEQRBADAEaSw6zC/EJkiwGPXbWtPxl2xCdSoeepS07jW8UgcHNurfHvUzogEq5xk hu507c3BarVjyWCJOylMNR98Yd8VqD9UfmX0Hb8/BrA+Hl6/DB/eqGptrf4BSRwcZQM32aZK 7Pj2XbGWIUrZrd70x1eAP9QE3P79Y2oLrsCgbZJfEwCgvz9JjGmQqQkRiTVzlZVCJYcyGGsD /0tbFCzD2h20ahe8rC1gbb3K3qk+LpBtvjBu1RY9drYk0NymiGbJWZgab6t1jM7sk2vuf0Py O9Hf9XBmK0uE9IgMaiCpc32XV9oASz6UJebwkX+zF2jG5I1BfnO9g7KlotcA/v5ClMjgo6Gl MDY4HxoSRu3i1cqqSDtVlt+AOVBJBACrZcnHAUSuCXBPy0jOlBhxPqRWv6ND4c9PH1xjQ3NP nxJuMBS8rnNg22uyfAgmBKNLpLgAGVRMZGaGoJObGf72s6TeIqKJo/LtggAS9qAUiuKVnygo 3wjfkS9A3DRO+SpU7JqWdsveeIQyeyEJ/8PTowmSQLakF+3fote9ybzd880fSmFuIEJldWxp Y2ggPGpiZXVsaWNoQHN1c2UuY29tPsJgBBMRAgAgBQJZN5xEAhsDBgsJCAcDAgQVAggDBBYC AwECHgECF4AACgkQoDSui/t3IH4J+wCfQ5jHdEjCRHj23O/5ttg9r9OIruwAn3103WUITZee e7Sbg12UgcQ5lv7SzsFNBFk3nEQQCACCuTjCjFOUdi5Nm244F+78kLghRcin/awv+IrTcIWF hUpSs1Y91iQQ7KItirz5uwCPlwejSJDQJLIS+QtJHaXDXeV6NI0Uef1hP20+y8qydDiVkv6l IreXjTb7DvksRgJNvCkWtYnlS3mYvQ9NzS9PhyALWbXnH6sIJd2O9lKS1Mrfq+y0IXCP10eS FFGg+Av3IQeFatkJAyju0PPthyTqxSI4lZYuJVPknzgaeuJv/2NccrPvmeDg6Coe7ZIeQ8Yj t0ARxu2xytAkkLCel1Lz1WLmwLstV30g80nkgZf/wr+/BXJW/oIvRlonUkxv+IbBM3dX2OV8 AmRv1ySWPTP7AAMFB/9PQK/VtlNUJvg8GXj9ootzrteGfVZVVT4XBJkfwBcpC/XcPzldjv+3 HYudvpdNK3lLujXeA5fLOH+Z/G9WBc5pFVSMocI71I8bT8lIAzreg0WvkWg5V2WZsUMlnDL9 mpwIGFhlbM3gfDMs7MPMu8YQRFVdUvtSpaAs8OFfGQ0ia3LGZcjA6Ik2+xcqscEJzNH+qh8V m5jjp28yZgaqTaRbg3M/+MTbMpicpZuqF4rnB0AQD12/3BNWDR6bmh+EkYSMcEIpQmBM51qM EKYTQGybRCjpnKHGOxG0rfFY1085mBDZCH5Kx0cl0HVJuQKC+dV2ZY5AqjcKwAxpE75MLFkr wkkEGBECAAkFAlk3nEQCGwwACgkQoDSui/t3IH7nnwCfcJWUDUFKdCsBH/E5d+0ZnMQi+G0A nAuWpQkjM1ASeQwSHEeAWPgskBQL
- Cc: Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Shawn Anastasio <sanastasio@xxxxxxxxxxxxxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
- Delivery-date: Mon, 27 Nov 2023 14:31:59 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 27.11.2023 15:13, Oleksii Kurochko wrote:
> Arm, PPC and RISC-V use the same device.h thereby device.h
> was moved to asm-generic. Arm's device.h was taken as a base with
> the following changes:
> - #ifdef PCI related things.
> - #ifdef ACPI related things.
> - Rename #ifdef guards.
> - Add SPDX tag.
> - #ifdef CONFIG_HAS_DEVICE_TREE related things.
> - #ifdef-ing iommu related things with CONFIG_HAS_PASSTHROUGH.
>
> Also Arm and PPC are switched to asm-generic version of device.h
>
> Signed-off-by: Oleksii Kurochko <oleksii.kurochko@xxxxxxxxx>
> ---
> Changes in V4:
> - Updated the commit message
> - Switched Arm and PPC to asm-generic version of device.h
> - Replaced HAS_PCI with CONFIG_HAS_PCI
> - ifdef-ing iommu filed of dev_archdata struct with CONFIG_HAS_PASSTHROUGH
> - ifdef-ing iommu_fwspec of device struct with CONFIG_HAS_PASSTHROUGH
> - ifdef-ing DT related things with CONFIG_HAS_DEVICE_TREE
> - Updated the commit message ( remove a note with question about
> if device.h should be in asm-generic or not )
> - Replaced DEVICE_IC with DEVICE_INTERRUPT_CONTROLLER
> - Rationalized usage of CONFIG_HAS_* in device.h
> - Fixed indents for ACPI_DEVICE_START and ACPI_DEVICE_END
> ---
> Changes in V3:
> - ifdef device tree related things.
> - update the commit message
> ---
> Changes in V2:
> - take ( as common ) device.h from Arm as PPC and RISC-V use it as a
> base.
> - #ifdef PCI related things.
> - #ifdef ACPI related things.
> - rename DEVICE_GIC to DEVIC_IC.
> - rename #ifdef guards.
> - switch Arm and PPC to generic device.h
> - add SPDX tag
> - update the commit message
>
> ---
> xen/arch/arm/device.c | 15 ++-
> xen/arch/arm/domain_build.c | 2 +-
> xen/arch/arm/gic-v2.c | 4 +-
> xen/arch/arm/gic-v3.c | 6 +-
> xen/arch/arm/gic.c | 4 +-
> xen/arch/arm/include/asm/Makefile | 1 +
> xen/arch/ppc/include/asm/Makefile | 1 +
> xen/arch/ppc/include/asm/device.h | 53 --------
> xen/arch/ppc/include/asm/irq.h | 4 +
> .../asm => include/asm-generic}/device.h | 125 +++++++++++-------
> xen/include/headers++.chk.new | 0
> 11 files changed, 106 insertions(+), 109 deletions(-)
> delete mode 100644 xen/arch/ppc/include/asm/device.h
> rename xen/{arch/arm/include/asm => include/asm-generic}/device.h (79%)
> create mode 100644 xen/include/headers++.chk.new
Stray new file, presumably because of a missing entry in .gitignore?
Overall I think there are too many changes done all in one go here.
But it's mostly Arm which is affected, so I'll leave judging about that
to the Arm maintainers.
> --- a/xen/arch/ppc/include/asm/irq.h
> +++ b/xen/arch/ppc/include/asm/irq.h
> @@ -3,7 +3,9 @@
> #define __ASM_PPC_IRQ_H__
>
> #include <xen/lib.h>
> +#ifdef CONFIG_HAS_DEVICE_TREE
> #include <xen/device_tree.h>
> +#endif
> #include <public/device_tree_defs.h>
Why would this #ifdef not cover the public header as well? (Otherwise I'd
be inclined to ask that the conditional be moved inside that header.)
Jan
|