Re: [PATCHv4 08/14] x86/mm: Make PGDIR_SHIFT and PTRS_PER_P4D variable

2017-08-21 Thread Kirill A. Shutemov
On Thu, Aug 17, 2017 at 01:10:05PM +0200, Ingo Molnar wrote: > > * Kirill A. Shutemov wrote: > > > On Thu, Aug 17, 2017 at 11:00:38AM +0200, Ingo Molnar wrote: > > > > > > * Kirill A. Shutemov wrote: > > > > > > > For boot-time switching

Re: [PATCHv4 08/14] x86/mm: Make PGDIR_SHIFT and PTRS_PER_P4D variable

2017-08-21 Thread Kirill A. Shutemov
On Thu, Aug 17, 2017 at 01:10:05PM +0200, Ingo Molnar wrote: > > * Kirill A. Shutemov wrote: > > > On Thu, Aug 17, 2017 at 11:00:38AM +0200, Ingo Molnar wrote: > > > > > > * Kirill A. Shutemov wrote: > > > > > > > For boot-time switching between 4- and 5-level paging we need to be able > > >

Re: [PATCHv4 08/14] x86/mm: Make PGDIR_SHIFT and PTRS_PER_P4D variable

2017-08-17 Thread Ingo Molnar
* Kirill A. Shutemov wrote: > On Thu, Aug 17, 2017 at 11:00:38AM +0200, Ingo Molnar wrote: > > > > * Kirill A. Shutemov wrote: > > > > > For boot-time switching between 4- and 5-level paging we need to be able > > > to fold p4d page

Re: [PATCHv4 08/14] x86/mm: Make PGDIR_SHIFT and PTRS_PER_P4D variable

2017-08-17 Thread Ingo Molnar
* Kirill A. Shutemov wrote: > On Thu, Aug 17, 2017 at 11:00:38AM +0200, Ingo Molnar wrote: > > > > * Kirill A. Shutemov wrote: > > > > > For boot-time switching between 4- and 5-level paging we need to be able > > > to fold p4d page table level at runtime. It requires variable > > >

Re: [PATCHv4 08/14] x86/mm: Make PGDIR_SHIFT and PTRS_PER_P4D variable

2017-08-17 Thread Kirill A. Shutemov
On Thu, Aug 17, 2017 at 11:00:38AM +0200, Ingo Molnar wrote: > > * Kirill A. Shutemov wrote: > > > For boot-time switching between 4- and 5-level paging we need to be able > > to fold p4d page table level at runtime. It requires variable > > PGDIR_SHIFT and

Re: [PATCHv4 08/14] x86/mm: Make PGDIR_SHIFT and PTRS_PER_P4D variable

2017-08-17 Thread Kirill A. Shutemov
On Thu, Aug 17, 2017 at 11:00:38AM +0200, Ingo Molnar wrote: > > * Kirill A. Shutemov wrote: > > > For boot-time switching between 4- and 5-level paging we need to be able > > to fold p4d page table level at runtime. It requires variable > > PGDIR_SHIFT and PTRS_PER_P4D. > > > > Signed-off-by:

Re: [PATCHv4 08/14] x86/mm: Make PGDIR_SHIFT and PTRS_PER_P4D variable

2017-08-17 Thread Ingo Molnar
* Kirill A. Shutemov wrote: > For boot-time switching between 4- and 5-level paging we need to be able > to fold p4d page table level at runtime. It requires variable > PGDIR_SHIFT and PTRS_PER_P4D. > > Signed-off-by: Kirill A. Shutemov

Re: [PATCHv4 08/14] x86/mm: Make PGDIR_SHIFT and PTRS_PER_P4D variable

2017-08-17 Thread Ingo Molnar
* Kirill A. Shutemov wrote: > For boot-time switching between 4- and 5-level paging we need to be able > to fold p4d page table level at runtime. It requires variable > PGDIR_SHIFT and PTRS_PER_P4D. > > Signed-off-by: Kirill A. Shutemov > --- > arch/x86/boot/compressed/kaslr.c| 5

[PATCHv4 08/14] x86/mm: Make PGDIR_SHIFT and PTRS_PER_P4D variable

2017-08-08 Thread Kirill A. Shutemov
For boot-time switching between 4- and 5-level paging we need to be able to fold p4d page table level at runtime. It requires variable PGDIR_SHIFT and PTRS_PER_P4D. Signed-off-by: Kirill A. Shutemov --- arch/x86/boot/compressed/kaslr.c| 5 +

[PATCHv4 08/14] x86/mm: Make PGDIR_SHIFT and PTRS_PER_P4D variable

2017-08-08 Thread Kirill A. Shutemov
For boot-time switching between 4- and 5-level paging we need to be able to fold p4d page table level at runtime. It requires variable PGDIR_SHIFT and PTRS_PER_P4D. Signed-off-by: Kirill A. Shutemov --- arch/x86/boot/compressed/kaslr.c| 5 + arch/x86/include/asm/pgtable_32.h