Re: [PATCH v2 2/2] x86/boot/64: round memory hole size up to next PMD page.

From: Steve Wahl
Date: Tue Sep 24 2019 - 15:48:57 EST


On Mon, Sep 23, 2019 at 02:20:35PM -0700, Dave Hansen wrote:
> On 9/23/19 11:15 AM, Steve Wahl wrote:
> > The kernel image map is created using PMD pages, which can include
> > some extra space beyond what's actually needed. Round the size of the
> > memory hole we search for up to the next PMD boundary, to be certain
> > all of the space to be mapped is usable RAM and includes no reserved
> > areas.
>
> This looks good. It also fully closes any possibility that anyone's
> future hardware will hit issues like this as long as they mark the
> memory reserved, right?

I believe that is true. Thanks!

> Reviewed-by: Dave Hansen <dave.hansen@xxxxxxxxxxxxxxx>

--> Steve Wahl

--
Steve Wahl, Hewlett Packard Enterprise