Re: [PATCH] x86/mm: increase pgt_buf size for 5-level page tables

From: Dave Hansen
Date: Wed Dec 16 2020 - 13:04:59 EST


On 12/15/20 12:56 PM, Lorenzo Stoakes wrote:
> +#ifndef CONFIG_X86_5LEVEL
> +#define INIT_PGD_PAGE_TABLES 3
> +#else
> +#define INIT_PGD_PAGE_TABLES 4
> +#endif
> +
> #ifndef CONFIG_RANDOMIZE_MEMORY
> -#define INIT_PGD_PAGE_COUNT 6
> +#define INIT_PGD_PAGE_COUNT (2 * INIT_PGD_PAGE_TABLES)
> #else
> -#define INIT_PGD_PAGE_COUNT 12
> +#define INIT_PGD_PAGE_COUNT (4 * INIT_PGD_PAGE_TABLES)
> #endif
> +

Lorenzo, thanks for the patch. That was a very nice changelog, and it
all seems sane to me, especially with Kirill's ack.

Acked-by: Dave Hansen <dave.hansen@xxxxxxxxx>