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

[PATCH v2 2/5] xen/arm: Reorder hypervisor node creation


  • To: xen-devel@xxxxxxxxxxxxxxxxxxxx
  • From: Koichiro Den <den@xxxxxxxxxxxxx>
  • Date: Sat, 5 Jul 2025 23:27:00 +0900
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=valinux.co.jp; dmarc=pass action=none header.from=valinux.co.jp; dkim=pass header.d=valinux.co.jp; arc=none
  • 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=adYHyU0Z4LO58iQg+65jtVe1dhfX3gBG7osPUnd80vM=; b=yF97IUKZ5cAVjANQ8i74A6UHfqgmU+0uTVwWa9OCGz/TL4FsQ4qcMzgCRM905uUHch66kn2mCnFdBCsdUJPm1HBvFPktXDDqX7qFLpbSf/SG2QdNTGaEGTpQXAI4QN55MW80mrdloncoOyIr0YS57cSXA87AGPPqopBqhdE4v/dGWqUcic17KapORkZVku+ZTGab9Guu4EU8PDbiCzk7FmZ/RHYgLQzmvVcwlnUMqDe7MMTEhPHMdzWhThgMmVH9qAKt+e/GcBYHk44H22MPYyF5Yj8kjOWc1CfQ2TZXiRyUua24MHtE3Abbtwh40dkIBB/MMsXrklp5NKp8JBFbHA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=NVSRTQN1dhlhI6VPhkz8ppm/pKzhRs0NOKi8lMuAkmIT2v5hpEYkdJMeLf4GR7oYaCCnsnYcZLhMZ7cdFoLPyUSiUef2ycFOkPFF1n0crQ96mp39ucEufd9EEqTM/ExrKx8C7j61t0EtJJ5bzIxLTCfWzafgctLQXftlro+SI/WmLu1dJEsBa6elO1kk3lYUNzhBR8IGTFkQVaWczQvNNxEicAgvdLRvX+v47sSvOqkAkiOqAi1iWkO8+wvLZyctvCjZ/OxkuKBrIdoJa9ykDXFS88zka5M0ihLtbfKO0S617mcZneDYiPvVmrkPO87ihAIJVS66+xSqUS0gdlAncg==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=valinux.co.jp;
  • Cc: Koichiro Den <den@xxxxxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • Delivery-date: Sat, 05 Jul 2025 14:27:46 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

Move the creation of the hypervisor node to a later stage to avoid
potential dependency issues.

No functional change.

Signed-off-by: Koichiro Den <den@xxxxxxxxxxxxx>
---
 xen/arch/arm/domain_build.c | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/xen/arch/arm/domain_build.c b/xen/arch/arm/domain_build.c
index 42210c702ab8..5fbc26f70988 100644
--- a/xen/arch/arm/domain_build.c
+++ b/xen/arch/arm/domain_build.c
@@ -1728,14 +1728,6 @@ static int __init handle_node(struct domain *d, struct 
kernel_info *kinfo,
          */
         evtchn_allocate(d);
 
-        /*
-         * The hypervisor node should always be created after all nodes
-         * from the host DT have been parsed.
-         */
-        res = make_hypervisor_node(d, kinfo, addrcells, sizecells);
-        if ( res )
-            return res;
-
         res = make_psci_node(kinfo->fdt);
         if ( res )
             return res;
@@ -1766,6 +1758,14 @@ static int __init handle_node(struct domain *d, struct 
kernel_info *kinfo,
             if ( res )
                 return res;
         }
+
+        /*
+         * The hypervisor node should always be created after all nodes
+         * from the host DT have been parsed.
+         */
+        res = make_hypervisor_node(d, kinfo, addrcells, sizecells);
+        if ( res )
+            return res;
     }
 
     res = fdt_end_node(kinfo->fdt);
-- 
2.48.1




 


Rackspace

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