[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 00/10] Extract bindings in dom0less code


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Alejandro Vallejo <alejandro.garciavallejo@xxxxxxx>
  • Date: Tue, 22 Jul 2025 13:59:40 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0)
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=UgS8CWqrhPnHOoP+s/mJLBkHM+4+Ax0hYJiWs8FvGew=; b=KdIip5USUHiUKC4L9OxAepwXjXSVE9JSvlEw9kYPUPFSoWKiXoky0WSIzQyajxFYM7OOuTZqwmK1m+QlbQ72q1WdvacYa0iZ/vpnqdv5n8J5iKsjUIJbkDjAZI6nGVTO7mOBPhvFgwaTPUnLJEeU669TZjAWhLtcHEBQGyIIk3nfhAvDEuvMgHsUwf0cKo2Eg4qvrmEtBdsEwMpwmlsw74RhRBHN6ZDjksC5xCl8tPjEejJKaOF1KUIWslZRWoprTK6Y4qiLiLXxG6xArjxnP4zCOaqp6xCnEBgeW6vPbuNr9VIzHcZOplL/mzfvotMdjTVTbGHz9P0mMyNOLUAc4A==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=GpvHEB4PBMr9T9JwdHzVFPA6y2AGVWWi1SKuYNn9aP3+2qAQH0R/aYgMyh8eDgr+5PT5Ez5vlS7joA6rTfaqftgwR6Z4GV0J0+/kS147wFrhd9hoppcRQe3sj1Cxfw600cGBDe2KVeXiEduRbImuQI6hh/If7yfp+ftVKyYcXnRKEOrtJGCfLlAwbUzjouMGxm2oYeYDKuHkhSPvxnp17yw/+5oG+QoK5FNkxYEEr1FmCENjYdXWJg+pe9KIXj2Z99zi4oyQ4NLV8TA2dzOrsl9rh6dkTzD3RaDlETCQQzKcHid3cdaqbq120WkMWA81QpWBbs486z6hCbdKYv3JoA==
  • Cc: Alejandro Vallejo <alejandro.garciavallejo@xxxxxxx>, "Daniel P. Smith" <dpsmith@xxxxxxxxxxxxxxxxxxxx>, 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>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • Delivery-date: Tue, 22 Jul 2025 12:00:28 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

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




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.