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

Re: [PATCH 10/15] x86/hyperlaunch: locate dom0 initrd with hyperlaunch


  • To: "Daniel P. Smith" <dpsmith@xxxxxxxxxxxxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Jason Andryuk <jason.andryuk@xxxxxxx>
  • Date: Mon, 25 Nov 2024 18:34:41 -0500
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=apertussolutions.com 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=TXvWFCpTil9BzfuAWj8uUkenC1NqcphInLmX4WubRhw=; b=QxHufHxwGitlrkGsoNjqeziFgZoMl+rOd8nOktqtDwXr3+ptEzor1SfyqKSqjaqAkExl/3hssAOkUX/L57oHcGKiKtTBa26H5fytpTVp0bXZVHeJdoi1JMlnigFNVKtB4QvrOw84Gn7wtnO+V/WXivWaEiZYsM/8/mUKPTYqUww8gU6OWQkx/p7fFIyG4to+erQ3Gs/YJhtt3kbUvyvfnrq3fwWLskR4KL9vCUjgO2JKPiZJPB1iJWaa47NEtF+waXXuTlc+M8rCvPvGvtqA4oaFXVJ7sL67+QnsMXc5l4q7dYetn6hybsUicpi/CJi5Zhf9sb2kS+tXDLwveNP38A==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=gumWYY/nDHKdn+bGawRqxUo/qh3dOui48v58XGHxmHrPw9GPepV3rkhdGaxddF/8wEYy7hEnCJiIhINkHQ7IgtMRY4U0pUTGPzwx4PGWu0g2HYdIs/j+csoEiRgJapa86na59b+fMykoMnTEcW8tOaPwqvBn4JeGU+Sk7CbkvuaotPIYOYqgMWKSlLn/S899TNRTi105zFrfBQUCU69yYopNe/zN/BupXM0PAxv+bmhzogPwTRI7WWaByWoqPLKHwIdbMXnCgNo0tJVD2zR5XoOmoNIw2vSk/eT3hUZ4dUuuEWg4zFFoMIMNblt3LJAoH308z2ZRkBERb5DawR4Szw==
  • Cc: <christopher.w.clark@xxxxxxxxx>, <stefano.stabellini@xxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • Delivery-date: Tue, 26 Nov 2024 01:16:49 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 2024-11-23 13:20, Daniel P. Smith wrote:
Look for a subnode of type `multiboot,ramdisk` within a domain node. If
found, process the reg property for the MB1 module index.

Signed-off-by: Daniel P. Smith <dpsmith@xxxxxxxxxxxxxxxxxxxx>
---
  xen/arch/x86/domain_builder/fdt.c | 25 ++++++++++++++++++++++
  xen/arch/x86/setup.c              | 35 +++++++++++++++++--------------
  2 files changed, 44 insertions(+), 16 deletions(-)

diff --git a/xen/arch/x86/domain_builder/fdt.c 
b/xen/arch/x86/domain_builder/fdt.c
index f8ddb11b339e..bc8054a80ec1 100644
--- a/xen/arch/x86/domain_builder/fdt.c
+++ b/xen/arch/x86/domain_builder/fdt.c
@@ -152,6 +152,31 @@ static int __init process_domain_node(
                  if ( ret > 0 )
                      bd->kernel->fdt_cmdline = true;
              }
+
+            continue;
+        }
+        if ( fdt_node_check_compatible(fdt, node, "multiboot,ramdisk") == 0 )

I think
        continue;
    }
    if

should change to

    } else if

?

Also "module,ramdisk"/"module,index"?

Regards,
Jason



 


Rackspace

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