diff options
Diffstat (limited to 'tools/testing/selftests/vm/userfaultfd.c')
-rw-r--r-- | tools/testing/selftests/vm/userfaultfd.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/testing/selftests/vm/userfaultfd.c b/tools/testing/selftests/vm/userfaultfd.c index c22127e72a3c..0899acd62111 100644 --- a/tools/testing/selftests/vm/userfaultfd.c +++ b/tools/testing/selftests/vm/userfaultfd.c @@ -411,6 +411,8 @@ static inline uint64_t uffd_minor_feature(void) /* b/308714445 * _UFFDIO_POISON unsupported in kernel <6.6 + * b/335674702 + * _UFFDIO_MOVE unupported in kernel <6.8 */ static uint32_t get_kernel_version(void) { @@ -444,6 +446,10 @@ static uint64_t get_expected_ioctls(uint64_t mode) // UFFDIO_POISON not supported until kernel 6.6. ioctls &= ~(1 << _UFFDIO_POISON); } + if (kernel_version < KERNEL_VERSION(6, 8, 0)) { + // UFFDIO_MOVE not supported until kernel 6.8. + ioctls &= ~(1 << _UFFDIO_MOVE); + } return ioctls; } |