All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 00/15] Allow x86 to unflatten DTs
@ 2025-06-13 15:13 Alejandro Vallejo
  2025-06-13 15:13 ` [PATCH v3 01/14] arm/gnttab: Remove xen/grant_table.h cyclic include Alejandro Vallejo
                   ` (14 more replies)
  0 siblings, 15 replies; 52+ messages in thread
From: Alejandro Vallejo @ 2025-06-13 15:13 UTC (permalink / raw)
  To: xen-devel
  Cc: Alejandro Vallejo, Stefano Stabellini, Julien Grall,
	Bertrand Marquis, Michal Orzel, Volodymyr Babchuk, Jan Beulich,
	Andrew Cooper, Roger Pau Monné, Anthony PERARD,
	Daniel P. Smith, Alistair Francis, Bob Eshleman, Connor Davis,
	Oleksii Kurochko

Hi,

New summary when compared to v2:

  * Patches 1 and 2 are just cleanup
  * Patch 3 is a modification of the CODING_STYLE to reflect the unwritten rule
    of splitting type names in words.
  * Patch 4 is a rename of struct bootmodule{,s} to boot_module{,s}, in accordance
    to the modification of patch 3. 
  * Patch 5-7 replaces x86-specific boot_{domain,module} defs in favour of
    common ones.
  * The rest are code motion and enablement of x86 to unflatten DTs and use
    some dom0less helpers.

v3 pipeline: https://gitlab.com/xen-project/people/agvallejo/xen/-/pipelines/1868636712

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 (14):
  arm/gnttab: Remove xen/grant_table.h cyclic include
  x86: Preinitialise all modules to be of kind BOOTMOD_UNKNOWN
  CODING_STYLE: Custom type names must be snake-cased by word.
  xen: Rename bootmodule{,s} to boot_module{,s}
  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 common one bootdomain
  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 helper to map nodes to module kinds
  xen/dt: ifdef out DEV_DT-related bits from device_tree.{c,h}
  xen/dt: Allow CONFIG_DOM0LESS_BOOT to include device-tree/
  kconfig: Allow x86 to pick CONFIG_DOM0LESS_BOOT

 CODING_STYLE                            |   3 +
 xen/arch/arm/dom0less-build.c           |   8 +-
 xen/arch/arm/domain_build.c             |  21 +-
 xen/arch/arm/efi/efi-boot.h             |   6 +-
 xen/arch/arm/include/asm/grant_table.h  |   1 -
 xen/arch/arm/kernel.c                   |  10 +-
 xen/arch/arm/llc-coloring.c             |   8 +-
 xen/arch/arm/mmu/setup.c                |  10 +-
 xen/arch/arm/setup.c                    |  11 +-
 xen/arch/riscv/mm.c                     |   2 +-
 xen/arch/riscv/setup.c                  |   2 +-
 xen/arch/x86/Kconfig                    |   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      |  56 ++
 xen/arch/x86/include/asm/bootinfo.h     |  57 +--
 xen/arch/x86/pv/dom0_build.c            |   6 +-
 xen/arch/x86/setup.c                    |  58 ++-
 xen/common/Kconfig                      |  13 +-
 xen/common/Makefile                     |   2 +-
 xen/common/device-tree/Makefile         |   9 +-
 xen/common/device-tree/bootfdt.c        | 654 ++----------------------
 xen/common/device-tree/bootinfo-fdt.c   | 583 +++++++++++++++++++++
 xen/common/device-tree/bootinfo.c       |  54 +-
 xen/common/device-tree/device-tree.c    |   2 +
 xen/common/device-tree/dom0less-build.c |  45 +-
 xen/common/device-tree/domain-build.c   |  22 +-
 xen/common/device-tree/kernel.c         |  30 +-
 xen/include/xen/bootfdt.h               | 277 +++-------
 xen/include/xen/bootinfo.h              | 213 ++++++++
 xen/include/xen/device_tree.h           |  44 +-
 xen/include/xen/fdt-domain-build.h      |   2 +-
 xen/include/xen/fdt-kernel.h            |  12 +-
 xen/xsm/xsm_policy.c                    |   4 +-
 35 files changed, 1162 insertions(+), 1112 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

-- 
2.43.0



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

end of thread, other threads:[~2025-06-19 19:51 UTC | newest]

Thread overview: 52+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-13 15:13 [PATCH v3 00/15] Allow x86 to unflatten DTs Alejandro Vallejo
2025-06-13 15:13 ` [PATCH v3 01/14] arm/gnttab: Remove xen/grant_table.h cyclic include Alejandro Vallejo
2025-06-14  0:30   ` Stefano Stabellini
2025-06-13 15:13 ` [PATCH v3 02/14] x86: Preinitialise all modules to be of kind BOOTMOD_UNKNOWN Alejandro Vallejo
2025-06-16  6:46   ` Jan Beulich
2025-06-13 15:13 ` [PATCH v3 03/14] CODING_STYLE: Custom type names must be snake-cased by word Alejandro Vallejo
2025-06-14  0:32   ` Stefano Stabellini
2025-06-16 11:08     ` Alejandro Vallejo
2025-06-16  6:48   ` Jan Beulich
2025-06-16 11:07     ` Alejandro Vallejo
2025-06-13 15:13 ` [PATCH v3 04/14] xen: Rename bootmodule{,s} to boot_module{,s} Alejandro Vallejo
2025-06-14  0:41   ` Stefano Stabellini
2025-06-17  1:12   ` Daniel P. Smith
2025-06-13 15:13 ` [PATCH v3 05/14] x86: Replace arch-specific boot_module with common one Alejandro Vallejo
2025-06-14  0:54   ` Stefano Stabellini
2025-06-16 11:35     ` Alejandro Vallejo
2025-06-17 11:36     ` Alejandro Vallejo
2025-06-13 15:13 ` [PATCH v3 06/14] xen: Refactor kernel_info to have a header like boot_domain Alejandro Vallejo
2025-06-14  0:58   ` Stefano Stabellini
2025-06-17  1:22   ` Daniel P. Smith
2025-06-17 10:05     ` Alejandro Vallejo
2025-06-13 15:13 ` [PATCH v3 07/14] x86: Replace arch-specific boot_domain common one bootdomain Alejandro Vallejo
2025-06-14  1:08   ` Stefano Stabellini
2025-06-13 15:13 ` [PATCH v3 08/14] xen/dt: Move bootfdt functions to xen/bootfdt.h Alejandro Vallejo
2025-06-14  1:16   ` Stefano Stabellini
2025-06-16 13:57     ` Alejandro Vallejo
2025-06-19 14:24     ` Alejandro Vallejo
2025-06-19 19:50       ` Stefano Stabellini
2025-06-13 15:13 ` [PATCH v3 09/14] xen/dt: Move bootinfo functions to a new bootinfo.h Alejandro Vallejo
2025-06-14  1:22   ` Stefano Stabellini
2025-06-13 15:13 ` [PATCH v3 10/14] xen/dt: Rename bootfdt.c -> bootinfo-fdt.c Alejandro Vallejo
2025-06-13 15:13 ` [PATCH v3 11/14] xen/dt: Extract helper to map nodes to module kinds Alejandro Vallejo
2025-06-13 15:13 ` [PATCH v3 12/14] xen/dt: ifdef out DEV_DT-related bits from device_tree.{c,h} Alejandro Vallejo
2025-06-14  1:24   ` Stefano Stabellini
2025-06-16  7:01   ` Jan Beulich
2025-06-16  7:57     ` Julien Grall
2025-06-13 15:13 ` [PATCH v3 13/14] xen/dt: Allow CONFIG_DOM0LESS_BOOT to include device-tree/ Alejandro Vallejo
2025-06-14  1:25   ` Stefano Stabellini
2025-06-16  6:55   ` Jan Beulich
2025-06-16 14:08     ` Alejandro Vallejo
2025-06-16 23:41       ` Stefano Stabellini
2025-06-13 15:13 ` [PATCH v3 14/14] kconfig: Allow x86 to pick CONFIG_DOM0LESS_BOOT Alejandro Vallejo
2025-06-14  1:26   ` Stefano Stabellini
2025-06-16  6:59   ` Jan Beulich
2025-06-16 14:12     ` Alejandro Vallejo
2025-06-16 14:19       ` Jan Beulich
2025-06-16  8:00   ` Julien Grall
2025-06-16 14:39     ` Alejandro Vallejo
2025-06-16 23:39       ` Stefano Stabellini
2025-06-17  1:01         ` dmkhn
2025-06-17  6:17         ` Jan Beulich
2025-06-13 15:28 ` [PATCH v3 00/15] Allow x86 to unflatten DTs 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.