summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/mm/uffd-common.h
diff options
context:
space:
mode:
authorPeter Xu <peterx@redhat.com>2023-04-12 19:45:17 +0300
committerAndrew Morton <akpm@linux-foundation.org>2023-04-19 02:30:07 +0300
commit4df9cefa9419718c32259c105ac8fbbc680410f7 (patch)
treea280b2b7099b80755bfa6843bc2ffa370b82730e /tools/testing/selftests/mm/uffd-common.h
parentc3315502c92406ec5bf36ba687f9651b43f838f6 (diff)
downloadlinux-4df9cefa9419718c32259c105ac8fbbc680410f7.tar.xz
selftests/mm: workaround no way to detect uffd-minor + wp
Userfaultfd minor+wp mode was very recently added. The test will fail on the old kernels at ioctl(UFFDIO_CONTINUE) which is misterious. Unfortunately there's no feature bit to detect for this support. Add a hack to leverage WP_UNPOPULATED to detect whether that feature existed, since WP_UNPOPULATED was merged right after minor+wp. Link: https://lkml.kernel.org/r/20230412164517.329152-1-peterx@redhat.com Signed-off-by: Peter Xu <peterx@redhat.com> Cc: Axel Rasmussen <axelrasmussen@google.com> Cc: David Hildenbrand <david@redhat.com> Cc: Dmitry Safonov <0x7f454c46@gmail.com> Cc: Mike Kravetz <mike.kravetz@oracle.com> Cc: Mike Rapoport (IBM) <rppt@kernel.org> Cc: Zach O'Keefe <zokeefe@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'tools/testing/selftests/mm/uffd-common.h')
0 files changed, 0 insertions, 0 deletions