x86/mm: Make __VIRTUAL_MASK_SHIFT dynamic
For boot-time switching between paging modes, we need to be able to adjust virtual mask shifts. The change doesn't affect the kernel image size much: text data bss dec hex filename 8628892 4734340 1368064 14731296 e0c820 vmlinux.before 8628966 4734340 1368064 14731370 e0c86a vmlinux.after Signed-off-by:Kirill A. Shutemov <kirill.shutemov@linux.intel.com> Cc: Andy Lutomirski <luto@amacapital.net> Cc: Borislav Petkov <bp@suse.de> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: linux-mm@kvack.org Link: http://lkml.kernel.org/r/20180214111656.88514-9-kirill.shutemov@linux.intel.com Signed-off-by:
Ingo Molnar <mingo@kernel.org>
Showing
- arch/x86/entry/entry_64.S 12 additions, 0 deletionsarch/x86/entry/entry_64.S
- arch/x86/include/asm/page_64_types.h 1 addition, 1 deletionarch/x86/include/asm/page_64_types.h
- arch/x86/mm/dump_pagetables.c 10 additions, 2 deletionsarch/x86/mm/dump_pagetables.c
- arch/x86/mm/kaslr.c 3 additions, 1 deletionarch/x86/mm/kaslr.c
Please register or sign in to comment