[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 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: Wed, 15 Jan 2025 11:43:54 -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=Cko+wENQ4hiN1t9FapAtca+2BCIFrcWK1gLMVkYQU+s=; b=L3l74cDL8QA4c/Y587DAxm0eDkft0PassY1vRj8gKPwG+GRV5WthykwiUpaZI0etqoNLd3GPM4e7nJCV0Yx3az3S7O9hR/zHujOJAwZ4X1K7SBKcNSbHU9ozJL+rXr+SW8g7kLS2O8TrIlQvVA37CvxRE82mT+bQ1eil6BzxwzkGWVv2omPoUSl9aPHP4DAYvKreFaPs2cs/QF0x27n8zWDXa8zfzts7ZWf2Wzh1jV/pJT6n4wKPAHoxmSWO0i4TBibnXpvniwlzW3HSCdBvEjsnbbDOUTheRHnlXXwzxxY7luiQsQBDtRDK2RASytZaWHFODrsiR+T+bauKZe0y+g==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=xQU4mGOhNS13pgpnG5yq9pC7o+IveirGuNnk+48phq8TMEsLhLEagS9HmcnH6mPxcqwdkQJd8mr715k8sFb3HHO0yecyhpAoczNNijkxfi3amAWuklFUC/NwBrBv59UUX1O/e367SvX3kzztKshPwGY6RDKYnj7JfuqGvRBE2jXPJMuEVrJOd5ejARLq1j8dXgDMwFYk5N0D+3Y6XJPMZRJYABlK66YlhdXj1DX424kwEF3Q9wNoeTXHSxRHVYK1PNkiHsIICxGpAzeCtFHjBZW4wqm26g0HmBoz+9M4Oa0Huca853JqYJLd1fLKbncpkm/eybECA8LeyXhzxMj80A==
- 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: Wed, 15 Jan 2025 16:44:14 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 2024-12-26 11:57, 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>
---
Changes since v1:
- switch to nested else/if
- dropped ternary name selection
---
xen/arch/x86/domain-builder/fdt.c | 26 +++++++++++++++++++++++
xen/arch/x86/setup.c | 35 +++++++++++++++++--------------
2 files changed, 45 insertions(+), 16 deletions(-)
diff --git a/xen/arch/x86/domain-builder/fdt.c
b/xen/arch/x86/domain-builder/fdt.c
index 1094c8dc8838..27bc37ad45c9 100644
--- a/xen/arch/x86/domain-builder/fdt.c
+++ b/xen/arch/x86/domain-builder/fdt.c
@@ -119,6 +119,32 @@ static int __init process_domain_node(
if ( ret > 0 )
bd->kernel->fdt_cmdline = true;
}
+
+ continue;
+ }
+ else if (
+ fdt_node_check_compatible(fdt, node, "multiboot,ramdisk") == 0 )
+ {
+ int idx = dom0less_module_node(fdt, node, size_size, address_size);
Your next patch has the hl_module_index() parsing you want moved into
this patch.
Regards,
Jason
|