x86/mm/64: Make __PHYSICAL_MASK_SHIFT always 52
authorKirill A. Shutemov <[email protected]>
Wed, 14 Feb 2018 11:16:48 +0000 (14:16 +0300)
committerIngo Molnar <[email protected]>
Wed, 14 Feb 2018 12:11:13 +0000 (13:11 +0100)
commitb83ce5ee91471d19c403ff91227204fb37c95fb2
tree530830b459b756cf431c27cc2000b43b58cdd558
parent116fef6408599dd6ff6996235c50aa692e9b5631
x86/mm/64: Make __PHYSICAL_MASK_SHIFT always 52

__PHYSICAL_MASK_SHIFT is used to define the mask that helps to extract
physical address from a page table entry.

Although real physical address space available may differ between
machines, it's safe to use 52 as __PHYSICAL_MASK_SHIFT. Unused bits
above log2(MAXPHYADDR) up to bit 51 are reserved and must be 0.

Signed-off-by: Kirill A. Shutemov <[email protected]>
Cc: Andy Lutomirski <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
arch/x86/include/asm/page_64_types.h