x86/boot: Allocate one extra module slot for Xen image placement
PATCH 1/1 x86/boot: Allocate one extra module slot for Xen image placement
Commit 9589927 (x86/mb2: avoid Xen image when looking for module/crashkernel position) fixed relocation issues for Multiboot2 protocol. Unfortunately it missed to allocate module slot for Xen image placement in early boot path. So, let's fix it right now.
--- xen/arch/x86/boot/reloc.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
xen/arch/x86/boot/reloc.c +6 -1
@@ -177,7 +177,12 @@ static multiboot_info_t *mbi2_reloc(u32 mbi_in)if ( mbi_out->mods_count ) { mbi_out->flags |=MBI_MODULES ; - mbi_out->mods_addr =alloc_mem (mbi_out->mods_count *sizeof (*mbi_out_mods)); +/* +* We have to allocate one more module slot here. At some point +* __start_xen() may put Xen image placement into it. +*/ + mbi_out->mods_addr =alloc_mem ((mbi_out->mods_count +1 ) * +sizeof (*mbi_out_mods)); mbi_out_mods =_p (mbi_out->mods_addr); }
Signature · 7 lines
1.7.10.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 8 lines · Daniel Kiper
Commit 9589927 (x86/mb2: avoid Xen image when looking for module/crashkernel position) fixed relocation issues for Multiboot2 protocol. Unfortunately it missed to allocate module slot for Xen image placement in early boot path. So, let's fix it right now.
Reported-by Wei Liu <[email protected]>Signed-off-by Daniel Kiper <[email protected]>
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 11 lines · Andrew Cooper
Quoted 8 lines · Daniel Kiper
Commit 9589927 (x86/mb2: avoid Xen image when looking for module/crashkernel position) fixed relocation issues for Multiboot2 protocol. Unfortunately it missed to allocate module slot for Xen image placement in early boot path. So, let's fix it right now.
Reported-by Wei Liu <[email protected]>Signed-off-by Daniel Kiper <[email protected]>Acked-by Andrew Cooper <[email protected]>
Wow!!! The quickest review which I have got ever! Less than 2 mins... :-)))
Thanks,
Daniel
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 8 lines · Daniel Kiper
Quoted 7 lines · Andrew Cooper
Quoted 6 lines · Daniel Kiper
Commit 9589927 (x86/mb2: avoid Xen image when looking for module/crashkernel position) fixed relocation issues for Multiboot2 protocol. Unfortunately it missed to allocate module slot for Xen image placement in early boot path. So, let's fix it right now.
Quoted 4 lines
Quoted 3 lines
Quoted 2 lines
Reported-by Wei Liu <[email protected]>Signed-off-by Daniel Kiper <[email protected]>Acked-by Andrew Cooper <[email protected]>Wow!!! The quickest review which I have got ever! Less than 2 mins... :-)))
Obvious patch is obvious. No point letting it languish.
~Andrew
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 9 lines · Andrew Cooper
Quoted 8 lines · Daniel Kiper
Quoted 7 lines · Andrew Cooper
Quoted 6 lines · Daniel Kiper
Commit 9589927 (x86/mb2: avoid Xen image when looking for module/crashkernel position) fixed relocation issues for Multiboot2 protocol. Unfortunately it missed to allocate module slot for Xen image placement in early boot path. So, let's fix it right now.
Quoted 6 lines
Quoted 4 lines
Quoted 3 lines
Quoted 2 lines
Reported-by Wei Liu <[email protected]>Signed-off-by Daniel Kiper <[email protected]>Acked-by Andrew Cooper <[email protected]>Wow!!! The quickest review which I have got ever! Less than 2 mins... :-)))
Obvious patch is obvious. No point letting it languish.
Yep, though even in that case it counts...
Daniel
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel