]> xenbits.xensource.com Git - people/aperard/xen-unstable.git/commitdiff
x86/boot: Fix PVH boot following the start of the MBI->BI conversion
authorAndrew Cooper <andrew.cooper3@citrix.com>
Sat, 19 Oct 2024 18:15:04 +0000 (19:15 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Sat, 19 Oct 2024 18:25:36 +0000 (19:25 +0100)
pvh_init() sets up the mbi pointer, but leaves mbi_p at 0.  This isn't
compatbile with multiboot_fill_boot_info() starting from the physical address,
in order to remove the use of the mbi pointer.

Fixes: 038826b61e85 ("x86/boot: move x86 boot module counting into a new boot_info struct")
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Daniel P. Smith <dpsmith@apertussolutions.com>
xen/arch/x86/setup.c

index 6746ed8cced65e8d9b894b3887450d9b46a3d292..bfede5064e8c6fd50edcf1e171662a13b7904e24 100644 (file)
@@ -1048,6 +1048,7 @@ void asmlinkage __init noreturn __start_xen(unsigned long mbi_p)
     {
         ASSERT(mbi_p == 0);
         pvh_init(&mbi, &mod);
+        mbi_p = __pa(mbi);
     }
     else
     {