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

[PATCH 07/10] dom0less: Turn arch_create_domUs into arch_parse_dom0less_node()


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Alejandro Vallejo <alejandro.garciavallejo@xxxxxxx>
  • Date: Tue, 22 Jul 2025 13:59:47 +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=30I35MrvL2cyCpeRQGHbELhQPOaqm7vu8acc/h9pO2o=; b=xIqEJjwXzzQNq2cy2QkBueSU+To/jjoNkjTXntNVWUFmlxUT++2DZkHG7Tljr71q0PYJon5GcEnmQn4jZIRMicCwYTaEtYqev+6nUM3p7nKsgMtl5pdd5ShqtNafyyVqTIvODW7S3POXthuj+MeiYKnjxuuEYc4AwH0ZAAO3JP5WNqnv6XqHXGW5vyFuQ5smzGdk6WPFTJha9E92axTFZ8kQsLMUd7kQLFOUYAsEzam3sD8fqMiG7EmLrs20ghBcFDEBeBvHHMIDhTSY0jzJD54teTW+EYfiqFKaF5mxU6gH70n28NuZqPZWJyXp77KciYKWRN/iUgnT0d6qkzZJtQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=iLwqj8LQZ78rXtxnjjQL2nCq6bqEXT1cclQCgPycTOlhxfaLw7TM63EteBpqtxtL5gxBG36wMgPPI8EEpi1afkLM8/KdoWvHmM/7D/hGoKxmv5OszBfenKPyD/PPwqod1swpGgviUUvprDJiCxUPJtpoUHKXJoCo5RC35dESUrDb0ICMdzVpOPPKKJTWlo51MWUpN6Ac+moUSyiNLTqcQYX0GOws62wvcWWg2Wi/zcsfPgPBw5vakmV3+efxPT9pdmsXnIItRExLtcSc2O3MVhyzwLuFIqk5vV5EN7qTVoVNud5WGwDlqvE+2rV2TXqs463cgcjOyFP3tKSMPuBhUA==
  • 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:33 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

It deals with a single domain, and will be called on a later patch
by a new function parse_dom0less_node(), so the new name is apt.

Also, pass parameters using boot_domain instead as the plan is to use it
as dumping gound for all the extracted information from the bindings.

Not a functional change.

Signed-off-by: Alejandro Vallejo <alejandro.garciavallejo@xxxxxxx>
---
 xen/arch/arm/dom0less-build.c           | 7 ++++---
 xen/common/device-tree/dom0less-build.c | 2 +-
 xen/include/xen/dom0less-build.h        | 5 ++---
 3 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/xen/arch/arm/dom0less-build.c b/xen/arch/arm/dom0less-build.c
index 286557fafd..3dea56dc76 100644
--- a/xen/arch/arm/dom0less-build.c
+++ b/xen/arch/arm/dom0less-build.c
@@ -272,10 +272,11 @@ int __init init_vuart(struct domain *d, struct 
kernel_info *kinfo,
     return rc;
 }
 
-void __init arch_create_domUs(struct dt_device_node *node,
-                       struct xen_domctl_createdomain *d_cfg,
-                       unsigned int flags)
+void __init arch_parse_dom0less_node(struct dt_device_node *node,
+                                     struct boot_domain *bd)
 {
+    struct xen_domctl_createdomain *d_cfg = &bd->create_cfg;
+    unsigned int flags = bd->create_flags;
     uint32_t val;
 
     d_cfg->arch.gic_version = XEN_DOMCTL_CONFIG_GIC_NATIVE;
diff --git a/xen/common/device-tree/dom0less-build.c 
b/xen/common/device-tree/dom0less-build.c
index e1d723c796..8caceb9f6b 100644
--- a/xen/common/device-tree/dom0less-build.c
+++ b/xen/common/device-tree/dom0less-build.c
@@ -960,7 +960,7 @@ void __init create_domUs(void)
             panic("'llc-colors' found, but LLC coloring is disabled\n");
 #endif
 
-        arch_create_domUs(node, d_cfg, *flags);
+        arch_parse_dom0less_node(node, &ki.bd);
 
         /*
          * The variable max_init_domid is initialized with zero, so here it's
diff --git a/xen/include/xen/dom0less-build.h b/xen/include/xen/dom0less-build.h
index 34b9884cc7..8f3f90ae2a 100644
--- a/xen/include/xen/dom0less-build.h
+++ b/xen/include/xen/dom0less-build.h
@@ -45,9 +45,8 @@ void create_domUs(void);
 bool is_dom0less_mode(void);
 void set_xs_domain(struct domain *d);
 
-void arch_create_domUs(struct dt_device_node *node,
-                       struct xen_domctl_createdomain *d_cfg,
-                       unsigned int flags);
+void arch_parse_dom0less_node(struct dt_device_node *node,
+                              struct boot_domain *bd);
 
 int init_vuart(struct domain *d, struct kernel_info *kinfo,
                const struct dt_device_node *node);
-- 
2.43.0




 


Rackspace

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