mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 10:40:15 +02:00 
			
		
		
		
	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
This commit is contained in:
		
							parent
							
								
									128dac5f21
								
							
						
					
					
						commit
						fac54e2bfb
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
					@ -159,6 +159,7 @@ config X86
 | 
				
			||||||
	select HAVE_ALIGNED_STRUCT_PAGE		if SLUB
 | 
						select HAVE_ALIGNED_STRUCT_PAGE		if SLUB
 | 
				
			||||||
	select HAVE_ARCH_AUDITSYSCALL
 | 
						select HAVE_ARCH_AUDITSYSCALL
 | 
				
			||||||
	select HAVE_ARCH_HUGE_VMAP		if X86_64 || X86_PAE
 | 
						select HAVE_ARCH_HUGE_VMAP		if X86_64 || X86_PAE
 | 
				
			||||||
 | 
						select HAVE_ARCH_HUGE_VMALLOC		if HAVE_ARCH_HUGE_VMAP
 | 
				
			||||||
	select HAVE_ARCH_JUMP_LABEL
 | 
						select HAVE_ARCH_JUMP_LABEL
 | 
				
			||||||
	select HAVE_ARCH_JUMP_LABEL_RELATIVE
 | 
						select HAVE_ARCH_JUMP_LABEL_RELATIVE
 | 
				
			||||||
	select HAVE_ARCH_KASAN			if X86_64
 | 
						select HAVE_ARCH_KASAN			if X86_64
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue