[PATCH] kexec-tools: multiboot2: Correct BASIC_MEMINFO memory units
dinhngoc.tu at irit.fr
dinhngoc.tu at irit.fr
Tue Oct 5 02:13:45 PDT 2021
> Thanks,
>
> I'm curious to know how the current code could have worked.
> Do we have some testing to verify this change?
Hi,
The current code is not actually used very often when loading Xen (which is
one of the few things that actually support Multiboot2), as Xen uses the
EBDA instead of the MB2 memory information on the MB2 boot path.
However this blows up on EFI systems without CSM (as EBDA is no longer
available).
I tested the loading of KVM->Xen and Xen->Xen with this patch and a patched
version of Xen that trusts the MB2 information, on a laptop and a server.
The Multiboot2 documentation at
https://www.gnu.org/software/grub/manual/multiboot2/multiboot.html#Basic-mem
ory-information also supports the change.
More information about the kexec
mailing list