]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blobdiff - arch/Kconfig
mm/vmalloc: hugepage vmalloc mappings
[mirror_ubuntu-jammy-kernel.git] / arch / Kconfig
index 5e8f6680d4bf5c40e9b941f2fb4a7e56a8aa41c4..bf27159be4d9af7c7745ca4639ef0be11c4d3f4e 100644 (file)
@@ -829,6 +829,17 @@ config HAVE_ARCH_TRANSPARENT_HUGEPAGE_PUD
 config HAVE_ARCH_HUGE_VMAP
        bool
 
+#
+#  Archs that select this would be capable of PMD-sized vmaps (i.e.,
+#  arch_vmap_pmd_supported() returns true), and they must make no assumptions
+#  that vmalloc memory is mapped with PAGE_SIZE ptes. The VM_NO_HUGE_VMAP flag
+#  can be used to prohibit arch-specific allocations from using hugepages to
+#  help with this (e.g., modules may require it).
+#
+config HAVE_ARCH_HUGE_VMALLOC
+       depends on HAVE_ARCH_HUGE_VMAP
+       bool
+
 config ARCH_WANT_HUGE_PMD_SHARE
        bool