Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

mm/Kconfig: make userfaultfd a menuconfig

PTE_MARKER_UFFD_WP is a subconfig for userfaultfd. To make it clear,
switch to use menuconfig for userfaultfd.

Link: https://lkml.kernel.org/r/20231123224204.1060152-1-peterx@redhat.com
Signed-off-by: Peter Xu <peterx@redhat.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: Axel Rasmussen <axelrasmussen@google.com>
Cc: Mike Rapoport (IBM) <rppt@kernel.org>
Cc: Peter Xu <peterx@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Peter Xu and committed by
Andrew Morton
97219cc3 f39fb633

+9 -7
+9 -7
mm/Kconfig
··· 1201 1201 area from being merged with adjacent virtual memory areas due to the 1202 1202 difference in their name. 1203 1203 1204 - config USERFAULTFD 1205 - bool "Enable userfaultfd() system call" 1206 - depends on MMU 1207 - help 1208 - Enable the userfaultfd() system call that allows to intercept and 1209 - handle page faults in userland. 1210 - 1211 1204 config HAVE_ARCH_USERFAULTFD_WP 1212 1205 bool 1213 1206 help ··· 1211 1218 help 1212 1219 Arch has userfaultfd minor fault support 1213 1220 1221 + menuconfig USERFAULTFD 1222 + bool "Enable userfaultfd() system call" 1223 + depends on MMU 1224 + help 1225 + Enable the userfaultfd() system call that allows to intercept and 1226 + handle page faults in userland. 1227 + 1228 + if USERFAULTFD 1214 1229 config PTE_MARKER_UFFD_WP 1215 1230 bool "Userfaultfd write protection support for shmem/hugetlbfs" 1216 1231 default y ··· 1228 1227 Allows to create marker PTEs for userfaultfd write protection 1229 1228 purposes. It is required to enable userfaultfd write protection on 1230 1229 file-backed memory types like shmem and hugetlbfs. 1230 + endif # USERFAULTFD 1231 1231 1232 1232 # multi-gen LRU { 1233 1233 config LRU_GEN