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 <dpsm...@apertussolutions.com>
---
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