Skip to content

Commit fac54e2

Browse files
liu-song-6Alexei Starovoitov
authored andcommitted
x86/Kconfig: Select HAVE_ARCH_HUGE_VMALLOC with HAVE_ARCH_HUGE_VMAP
This enables module_alloc() to allocate huge page for 2MB+ requests. To check the difference of this change, we need enable config CONFIG_PTDUMP_DEBUGFS, and call module_alloc(2MB). Before the change, /sys/kernel/debug/page_tables/kernel shows pte for this map. With the change, /sys/kernel/debug/page_tables/ show pmd for thie map. Signed-off-by: Song Liu <songliubraving@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Link: https://lore.kernel.org/bpf/20220204185742.271030-2-song@kernel.org
1 parent 128dac5 commit fac54e2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/x86/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ config X86
159159
select HAVE_ALIGNED_STRUCT_PAGE if SLUB
160160
select HAVE_ARCH_AUDITSYSCALL
161161
select HAVE_ARCH_HUGE_VMAP if X86_64 || X86_PAE
162+
select HAVE_ARCH_HUGE_VMALLOC if HAVE_ARCH_HUGE_VMAP
162163
select HAVE_ARCH_JUMP_LABEL
163164
select HAVE_ARCH_JUMP_LABEL_RELATIVE
164165
select HAVE_ARCH_KASAN if X86_64

0 commit comments

Comments
 (0)