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

2021-01-04 Thread Lorenzo Stoakes
Happy NY all, thanks for the review! I haven't contributed an x86-specific mm patch before so am not sure of the process - usually I submit patches to the mm mailing list and Andrew gathers them up into his tree, is there anything else I need to do with this? Thanks, Lorenzo

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

2020-12-16 Thread Dave Hansen
On 12/15/20 12:56 PM, Lorenzo Stoakes wrote: > +#ifndef CONFIG_X86_5LEVEL > +#define INIT_PGD_PAGE_TABLES3 > +#else > +#define INIT_PGD_PAGE_TABLES4 > +#endif > + > #ifndef CONFIG_RANDOMIZE_MEMORY > -#define INIT_PGD_PAGE_COUNT 6 > +#define INIT_PGD_PAGE_COUNT (2 * INIT_PGD_PAGE_

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

2020-12-16 Thread Kirill A. Shutemov
On Tue, Dec 15, 2020 at 08:56:41PM +, Lorenzo Stoakes wrote: > pgt_buf is used to allocate page tables on initial direct page mapping > bootstrapping us into being able to allocate these before the direct > mapping makes further pages available. > > INIT_PGD_PAGE_COUNT is set to 6 pages (doubl

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

2020-12-15 Thread Lorenzo Stoakes
pgt_buf is used to allocate page tables on initial direct page mapping bootstrapping us into being able to allocate these before the direct mapping makes further pages available. INIT_PGD_PAGE_COUNT is set to 6 pages (doubled for KASLR) - 3 (PUD, PMD, PTE) for the 1 MiB ISA mapping and 3 more for