Skip to content

Commit a2492ca

Browse files
SiFiveHollandpalmer-dabbelt
authored andcommitted
riscv: Select HAVE_ARCH_USERFAULTFD_MINOR
This allocates the VM flag needed to support the userfaultfd minor fault functionality. Because the flag bit is >= bit 32, it can only be enabled for 64-bit kernels. See commit 7677f7f ("userfaultfd: add minor fault registration mode") for more information. Signed-off-by: Samuel Holland <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent 5177978 commit a2492ca

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/riscv/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ config RISCV
100100
select HAVE_ARCH_THREAD_STRUCT_WHITELIST
101101
select HAVE_ARCH_TRACEHOOK
102102
select HAVE_ARCH_TRANSPARENT_HUGEPAGE if 64BIT && MMU
103+
select HAVE_ARCH_USERFAULTFD_MINOR if 64BIT && USERFAULTFD
103104
select HAVE_ARCH_VMAP_STACK if MMU && 64BIT
104105
select HAVE_ASM_MODVERSIONS
105106
select HAVE_CONTEXT_TRACKING_USER

0 commit comments

Comments
 (0)