On 2025-07-02 04:12, Juergen Gross wrote:
For memory areas used to map foreign domain memory Mini-OS is using
the type E820_RESERVED in the memory map today. This is causing
problems with kexec, as the new kernel should not see those areas in
the memory map. Unfortunately the sequence of actions for calculating
the size of the memory map and the removal of those reserved areas
can't easily be adjusted to do the removal first, so another way must
be used to avoid passing those reserved areas to the new kernel.

Instead of using the type E820_RESERVED, which might be used for other
pages as well, just use a new type. Areas with that new type can
easily be filtered out when building the memory map for the new
kernel.

Introduce the type E820_TYPE_SOFT_RESERVED with the same value as the
Linux kernel is using for the same purpose.

Signed-off-by: Juergen Gross <jgr...@suse.com>

Reviewed-by: Jason Andryuk <jason.andr...@amd.com>

Reply via email to