]> xenbits.xensource.com Git - xen.git/commitdiff
x86/boot: move kextra into boot info
authorDaniel P. Smith <dpsmith@apertussolutions.com>
Sat, 2 Nov 2024 17:25:45 +0000 (13:25 -0400)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 7 Nov 2024 17:51:31 +0000 (17:51 +0000)
... so it can be removed as a distinct parameter to create_dom0().

Signed-off-by: Daniel P. Smith <dpsmith@apertussolutions.com>
Reviewed-by: Jason Andryuk <jason.andryuk@amd.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/include/asm/bootinfo.h
xen/arch/x86/setup.c

index cf353e8fdcbaf564ebbc102169e60fcc179fca33..d1508e7ad72cc3ff3e07be3667262b655a38256a 100644 (file)
@@ -66,6 +66,7 @@ struct boot_module {
 struct boot_info {
     const char *loader;
     const char *cmdline;
+    const char *kextra;
 
     paddr_t memmap_addr;
     size_t memmap_length;
index afacfdeb47b91d7c8c8938509c4ad57f421a3665..b4c17a1411387013d4ccefde174284141295ba50 100644 (file)
@@ -1108,6 +1108,7 @@ void asmlinkage __init noreturn __start_xen(void)
         *kextra = '\0';
         kextra += 3;
         while ( kextra[1] == ' ' ) kextra++;
+        bi->kextra = kextra;
     }
     cmdline_parse(bi->cmdline);
 
@@ -2111,7 +2112,7 @@ void asmlinkage __init noreturn __start_xen(void)
     dom0 = create_dom0(bi->mods[0].mod, bi->mods[0].headroom,
                        initrdidx < bi->nr_modules ? bi->mods[initrdidx].mod
                                                   : NULL,
-                       kextra, bi->loader);
+                       bi->kextra, bi->loader);
     if ( !dom0 )
         panic("Could not set up DOM0 guest OS\n");