Skip to content

Commit 9f44977

Browse files
amlutoIngo Molnar
authored andcommitted
x86/mm/64: Make a full PGD-entry size hole in the memory map
Shrink vmalloc space from 16384TiB to 12800TiB to enlarge the hole starting at 0xff90000000000000 to be a full PGD entry. A subsequent patch will use this hole for the pagetable isolation LDT alias. Signed-off-by: Andy Lutomirski <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Cc: Borislav Petkov <[email protected]> Cc: Brian Gerst <[email protected]> Cc: Dave Hansen <[email protected]> Cc: Dave Hansen <[email protected]> Cc: David Laight <[email protected]> Cc: H. Peter Anvin <[email protected]> Cc: Josh Poimboeuf <[email protected]> Cc: Juergen Gross <[email protected]> Cc: Kees Cook <[email protected]> Cc: Kirill A. Shutemov <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Peter Zijlstra <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
1 parent c1961a4 commit 9f44977

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Documentation/x86/x86_64/mm.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ Virtual memory map with 5 level page tables:
2929
hole caused by [56:63] sign extension
3030
ff00000000000000 - ff0fffffffffffff (=52 bits) guard hole, reserved for hypervisor
3131
ff10000000000000 - ff8fffffffffffff (=55 bits) direct mapping of all phys. memory
32-
ff90000000000000 - ff91ffffffffffff (=49 bits) hole
33-
ff92000000000000 - ffd1ffffffffffff (=54 bits) vmalloc/ioremap space
32+
ff90000000000000 - ff9fffffffffffff (=52 bits) hole
33+
ffa0000000000000 - ffd1ffffffffffff (=54 bits) vmalloc/ioremap space (12800 TB)
3434
ffd2000000000000 - ffd3ffffffffffff (=49 bits) hole
3535
ffd4000000000000 - ffd5ffffffffffff (=49 bits) virtual memory map (512TB)
3636
... unused hole ...

arch/x86/include/asm/pgtable_64_types.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ typedef struct { pteval_t pte; } pte_t;
7979
#define MAXMEM _AC(__AC(1, UL) << MAX_PHYSMEM_BITS, UL)
8080

8181
#ifdef CONFIG_X86_5LEVEL
82-
# define VMALLOC_SIZE_TB _AC(16384, UL)
83-
# define __VMALLOC_BASE _AC(0xff92000000000000, UL)
82+
# define VMALLOC_SIZE_TB _AC(12800, UL)
83+
# define __VMALLOC_BASE _AC(0xffa0000000000000, UL)
8484
# define __VMEMMAP_BASE _AC(0xffd4000000000000, UL)
8585
#else
8686
# define VMALLOC_SIZE_TB _AC(32, UL)

0 commit comments

Comments
 (0)