[PATCH] xen: Avoid overlapping segments in low memory

Simon Horman horms at verge.net.au
Wed May 15 00:40:28 PDT 2019


On Sun, Apr 28, 2019 at 01:52:12PM +0300, David Woodhouse wrote:
> From: David Woodhouse <dwmw at amazon.co.uk>
> 
> Unlike Linux which creates a full identity mapping, Xen only maps those
> segments which are explicitly requested. Therefore, xen_kexec_load()
> silently adds in a segment from zero to 1MiB to ensure that VGA memory
> and other things are accessible.
> 
> However, this doesn't work when there are already segments to be loaded
> under 1MiB, because the overlap causes Xen to reject the kexec_load.
> 
> Be more careful and just infill the ranges which are required instead
> of naïvely adding a full 0-1MiB segment at the end of the list.
> 
> Signed-off-by: David Woodhouse <dwmw at amazon.co.uk>

Thanks David,

applied.



More information about the kexec mailing list