Re: [PATCH] x86/e820: Fix handling of subpage regions when calculating nosave ranges
From: Greg KH
Date: Sat Apr 05 2025 - 03:42:26 EST
On Sat, Apr 05, 2025 at 10:09:24AM +0700, msizanoen wrote:
> Handle better cases where there might be non-page-aligned RAM e820
> regions so we don't end up marking kernel memory as nosave.
>
> This also simplifies the calculation of nosave ranges by treating
> non-RAM regions as holes.
>
> Fixes: e5540f875404 ("x86/boot/e820: Consolidate 'struct e820_entry *entry' local variable names")
> Tested-by: Roberto Ricci <io@xxxxxxxxxx>
> Reported-by: Roberto Ricci <io@xxxxxxxxxx>
> Closes: https://lore.kernel.org/all/Z4WFjBVHpndct7br@desktop0a/
> Signed-off-by: msizanoen <msizanoen@xxxxxxxxxxx>
Please use your name, not your email alias, for a signed-off-by line.