From: Peter Xu Date: Thu, 14 Apr 2022 19:16:53 +0000 (-0700) Subject: mm: enable PTE markers by default X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=a852170ccf107b8c7a7a8b27154c5d4b98b67209;p=users%2Fjedix%2Flinux-maple.git mm: enable PTE markers by default Enable PTE markers by default. On x86_64 it means it'll auto-enable PTE_MARKER_UFFD_WP as well. Link: https://lkml.kernel.org/r/20220405014929.15158-1-peterx@redhat.com Signed-off-by: Peter Xu Cc: Alistair Popple Cc: Andrea Arcangeli Cc: Axel Rasmussen Cc: David Hildenbrand Cc: Hugh Dickins Cc: Jerome Glisse Cc: "Kirill A . Shutemov" Cc: Matthew Wilcox Cc: Mike Kravetz Cc: Mike Rapoport Cc: Nadav Amit Signed-off-by: Andrew Morton --- diff --git a/mm/Kconfig b/mm/Kconfig index 71c653260a44..2cfaad24358b 100644 --- a/mm/Kconfig +++ b/mm/Kconfig @@ -911,12 +911,14 @@ config ANON_VMA_NAME config PTE_MARKER bool "Marker PTEs support" + default y help Allows to create marker PTEs for file-backed memory. config PTE_MARKER_UFFD_WP bool "Marker PTEs support for userfaultfd write protection" + default y depends on PTE_MARKER && HAVE_ARCH_USERFAULTFD_WP help