All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v7 00/11] Allow x86 to unflatten DTs
@ 2025-07-15 16:10 Alejandro Vallejo
  2025-07-15 16:10 ` [PATCH v7 01/11] x86: Replace arch-specific boot_module with common one Alejandro Vallejo
                   ` (10 more replies)
  0 siblings, 11 replies; 24+ messages in thread
From: Alejandro Vallejo @ 2025-07-15 16:10 UTC (permalink / raw)
  To: xen-devel
  Cc: Alejandro Vallejo, Jan Beulich, Andrew Cooper,
	Roger Pau Monné, Stefano Stabellini, Julien Grall,
	Bertrand Marquis, Michal Orzel, Volodymyr Babchuk, Anthony PERARD,
	Alistair Francis, Bob Eshleman, Connor Davis, Oleksii Kurochko,
	Dario Faggioli, Juergen Gross, George Dunlap, Shawn Anastasio,
	Marek Marczykowski-Górecki, Daniel P. Smith

Hi,

I've fixed a couple of issues with the 2 refactors.

  1. The proposed fixup by Daniel went ahead and was lost on rebase. v7 includes
     it back.
  2. The pre-requisite rename of bootfdt.c to bootinfo-fdt.c was mis-squashed on
     rebase too. This, too, has been restored to keep a tidier history.

Otherwise, same old.

pipeline: https://gitlab.com/xen-project/people/agvallejo/xen/-/commit/0b28c9551df54aaf662d03e2f2a07e446a9e4c4d

v6: https://lore.kernel.org/xen-devel/20250708180721.2338036-1-alejandro.garciavallejo@amd.com/
v5: https://lore.kernel.org/xen-devel/20250701105706.86133-1-agarciav@amd.com/
v4: https://lore.kernel.org/xen-devel/20250620182859.23378-1-agarciav@amd.com/
v3: https://lore.kernel.org/xen-devel/20250613151612.754222-1-agarciav@amd.com/
v3: https://lore.kernel.org/xen-devel/20250613151612.754222-1-agarciav@amd.com/
v2: https://lore.kernel.org/xen-devel/20250605194810.2782031-1-agarciav@amd.com/
v1: https://lore.kernel.org/xen-devel/20250530120242.39398-1-agarciav@amd.com/

Original cover letter
=====================

This is the aftermath of this discussion:

  https://lore.kernel.org/xen-devel/DA1WWRUQLCAG.ZTVR1HXJ85V0@amd.com/https://lore.kernel.org/xen-devel/DA1WWRUQLCAG.ZTVR1HXJ85V0@amd.com/

It's a first round of cleanup and preparation to have a much easier time
later when integrating dom0less boot into hyperlaunch.

The refactor on device-tree/ is _fine_ by I'm open to other suggestions
to achieve the same thing. In particular, after this series x86 can
unflatten the DT host device tree when it has CONFIG_DOM0LESS_BOOT set,
which enables the builder to use factored-out functions from
dom0less-build.c (not done here).

The diffstat is deceptive because I renamed a large file and then
created a new file with the same name. There aren't that many LoC
changes.


Alejandro Vallejo (11):
  x86: Replace arch-specific boot_module with common one
  xen: Refactor kernel_info to have a header like boot_domain
  x86: Replace arch-specific boot_domain with the common one
  xen/dt: Move bootfdt functions to xen/bootfdt.h
  xen/dt: Move bootinfo functions to a new bootinfo.h
  xen/dt: Rename bootfdt.c -> bootinfo-fdt.c
  xen/dt: Extract bootinfo-independent functions to bootfdt.c
  xen/dt: Extract helper to map nodes to module kinds
  xen: Split HAS_DEVICE_TREE in two
  xen/dt: ifdef out DEV_DT-related bits from device_tree.{c,h}
  xen/dt: Allow CONFIG_DEVICE_TREE_PARSE to include device-tree/

 xen/Kconfig.debug                       |   2 +-
 xen/arch/arm/Kconfig                    |   2 +-
 xen/arch/arm/dom0less-build.c           |   8 +-
 xen/arch/arm/domain_build.c             |  21 +-
 xen/arch/arm/include/asm/setup.h        |   2 +-
 xen/arch/arm/kernel.c                   |   8 +-
 xen/arch/arm/setup.c                    |   1 +
 xen/arch/ppc/Kconfig                    |   2 +-
 xen/arch/riscv/Kconfig                  |   2 +-
 xen/arch/riscv/cpufeature.c             |   1 +
 xen/arch/riscv/mm.c                     |   2 +-
 xen/arch/riscv/setup.c                  |   2 +-
 xen/arch/riscv/smpboot.c                |   1 +
 xen/arch/x86/cpu/microcode/core.c       |   7 +-
 xen/arch/x86/hvm/dom0_build.c           |   8 +-
 xen/arch/x86/include/asm/boot-domain.h  |  33 --
 xen/arch/x86/include/asm/bootfdt.h      |  50 ++
 xen/arch/x86/include/asm/bootinfo.h     |  57 +--
 xen/arch/x86/pv/dom0_build.c            |   6 +-
 xen/arch/x86/setup.c                    |  45 +-
 xen/common/Kconfig                      |  15 +-
 xen/common/Makefile                     |   4 +-
 xen/common/device-tree/Makefile         |   5 +-
 xen/common/device-tree/bootfdt.c        | 617 +-----------------------
 xen/common/device-tree/bootinfo-fdt.c   | 584 ++++++++++++++++++++++
 xen/common/device-tree/bootinfo.c       |   2 +-
 xen/common/device-tree/device-tree.c    |   3 +
 xen/common/device-tree/dom0less-build.c |  20 +-
 xen/common/device-tree/domain-build.c   |  22 +-
 xen/common/device-tree/kernel.c         |  22 +-
 xen/common/device-tree/static-evtchn.c  |   1 +
 xen/common/device.c                     |   4 +-
 xen/common/efi/boot.c                   |   2 +-
 xen/common/sched/Kconfig                |   2 +-
 xen/common/sched/boot-cpupool.c         |   1 +
 xen/drivers/char/ns16550.c              |   6 +-
 xen/drivers/passthrough/Makefile        |   2 +-
 xen/drivers/passthrough/iommu.c         |   2 +-
 xen/include/asm-generic/device.h        |  10 +-
 xen/include/xen/bootfdt.h               | 316 +++++-------
 xen/include/xen/bootinfo.h              | 213 ++++++++
 xen/include/xen/device_tree.h           |  82 +---
 xen/include/xen/fdt-domain-build.h      |   2 +-
 xen/include/xen/fdt-kernel.h            |   7 +-
 xen/include/xen/iommu.h                 |   8 +-
 xen/include/xsm/dummy.h                 |   4 +-
 xen/include/xsm/xsm.h                   |  12 +-
 xen/xsm/dummy.c                         |   2 +-
 xen/xsm/flask/hooks.c                   |   6 +-
 xen/xsm/xsm_core.c                      |   4 +-
 xen/xsm/xsm_policy.c                    |   6 +-
 51 files changed, 1146 insertions(+), 1100 deletions(-)
 delete mode 100644 xen/arch/x86/include/asm/boot-domain.h
 create mode 100644 xen/arch/x86/include/asm/bootfdt.h
 create mode 100644 xen/common/device-tree/bootinfo-fdt.c
 create mode 100644 xen/include/xen/bootinfo.h


base-commit: 63919fc4d1cab1771d7b397a2ede8f8769403fe7
-- 
2.43.0



^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2025-07-21 23:08 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-15 16:10 [PATCH v7 00/11] Allow x86 to unflatten DTs Alejandro Vallejo
2025-07-15 16:10 ` [PATCH v7 01/11] x86: Replace arch-specific boot_module with common one Alejandro Vallejo
2025-07-21 22:27   ` Daniel P. Smith
2025-07-21 23:07     ` Alejandro Vallejo
2025-07-15 16:10 ` [PATCH v7 02/11] xen: Refactor kernel_info to have a header like boot_domain Alejandro Vallejo
2025-07-15 16:10 ` [PATCH v7 03/11] x86: Replace arch-specific boot_domain with the common one Alejandro Vallejo
2025-07-18  0:09   ` Stefano Stabellini
2025-07-18  6:51     ` Jan Beulich
2025-07-18  6:47   ` Jan Beulich
2025-07-15 16:10 ` [PATCH v7 04/11] xen/dt: Move bootfdt functions to xen/bootfdt.h Alejandro Vallejo
2025-07-21 11:24   ` Oleksii Kurochko
2025-07-15 16:11 ` [PATCH v7 05/11] xen/dt: Move bootinfo functions to a new bootinfo.h Alejandro Vallejo
2025-07-21 11:52   ` Oleksii Kurochko
2025-07-15 16:11 ` [PATCH v7 06/11] xen/dt: Rename bootfdt.c -> bootinfo-fdt.c Alejandro Vallejo
2025-07-17 14:43   ` Orzel, Michal
2025-07-15 16:11 ` [PATCH v7 07/11] xen/dt: Extract bootinfo-independent functions to bootfdt.c Alejandro Vallejo
2025-07-17 14:43   ` Orzel, Michal
2025-07-15 16:11 ` [PATCH v7 08/11] xen/dt: Extract helper to map nodes to module kinds Alejandro Vallejo
2025-07-15 16:11 ` [PATCH v7 09/11] xen: Split HAS_DEVICE_TREE in two Alejandro Vallejo
2025-07-21 11:34   ` Oleksii Kurochko
2025-07-21 22:08   ` Daniel P. Smith
2025-07-15 16:11 ` [PATCH v7 10/11] xen/dt: ifdef out DEV_DT-related bits from device_tree.{c,h} Alejandro Vallejo
2025-07-15 16:11 ` [PATCH v7 11/11] xen/dt: Allow CONFIG_DEVICE_TREE_PARSE to include device-tree/ Alejandro Vallejo
2025-07-16 15:55   ` Alejandro Vallejo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.