Hi,

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

With boot_domain common between architectures, we're now in a position to use
it as the common ground to dump results of dom0less bindings. This series is
largely code motion with a few tweaks to make it simple for x86 to hook into
the dom0less bindings.

The idea is to create a parse_dom0less_node() function, that takes a boot_domain
and depending on the bindings found on the xen,domain node, populates it one way
or the other. parse_dom0less_node() calls internally an
arch_parse_dom0less_node() function to allow arch-specific bindings or checks.

Patch 9: "dom0less: Reinitialise all variables on each loop iteration" is a
         separate bugfix. Patch 10 does code motion and implicitly fixes it
         too, but I added it so it can be backported to stable branches.

Alejandro Vallejo (10):
  static-evtchn: Add missing include
  dt: Add cf_check to device-tree.c function pointers
  dom0less: Move asm-generic/dom0less-build.h -> xen/dom0less-build.h
  bootfdt: Add createdomain arguments to boot_domain
  dom0less: Introduce kernel_info into the domain creation loop
  dom0less: Create llc_color_str field in boot_domain
  dom0less: Turn arch_create_domUs into arch_parse_dom0less_node()
  dom0less: Allow arch_parse_dom0less_node() to be fallible
  dom0less: Reinitialise all variables on each loop iteration
  dom0less: Parse dom0less bindings into createdomain input args

 xen/arch/arm/dom0less-build.c                 |  11 +-
 xen/arch/arm/domain_build.c                   |   2 +-
 xen/arch/arm/include/asm/Makefile             |   1 -
 xen/arch/arm/setup.c                          |   2 +-
 xen/common/device-tree/Makefile               |   3 +-
 xen/common/device-tree/device-tree.c          |  28 +--
 xen/common/device-tree/dom0less-bindings.c    | 145 +++++++++++++
 xen/common/device-tree/dom0less-build.c       | 193 ++++--------------
 xen/common/device-tree/static-evtchn.c        |   1 +
 xen/include/xen/bootfdt.h                     |  11 +
 .../{asm-generic => xen}/dom0less-build.h     |  15 +-
 11 files changed, 228 insertions(+), 184 deletions(-)
 create mode 100644 xen/common/device-tree/dom0less-bindings.c
 rename xen/include/{asm-generic => xen}/dom0less-build.h (90%)


base-commit: e9339514744904061ca01046e5ca6b97cb4f0fb2
-- 
2.43.0


Reply via email to