• Suren Baghdasaryan's avatar
    selftests/mm: add separate UFFDIO_MOVE test for PMD splitting · a5b7620b
    Suren Baghdasaryan authored
    Add a test for UFFDIO_MOVE ioctl operating on a hugepage which has to be
    split because destination is marked with MADV_NOHUGEPAGE.  With this we
    cover all 3 cases: normal page move, hugepage move, hugepage splitting
    before move.
    
    Link: https://lkml.kernel.org/r/20231230025636.2477429-1-surenb@google.com
    
    Signed-off-by: default avatarSuren Baghdasaryan <surenb@google.com>
    Cc: Al Viro <viro@zeniv.linux.org.uk>
    Cc: Andrea Arcangeli <aarcange@redhat.com>
    Cc: Axel Rasmussen <axelrasmussen@google.com>
    Cc: Brian Geffon <bgeffon@google.com>
    Cc: Christian Brauner <brauner@kernel.org>
    Cc: David Hildenbrand <david@redhat.com>
    Cc: Hugh Dickins <hughd@google.com>
    Cc: Jann Horn <jannh@google.com>
    Cc: Kalesh Singh <kaleshsingh@google.com>
    Cc: Liam R. Howlett <Liam.Howlett@oracle.com>
    Cc: Lokesh Gidra <lokeshgidra@google.com>
    Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
    Cc: Michal Hocko <mhocko@suse.com>
    Cc: Mike Rapoport (IBM) <rppt@kernel.org>
    Cc: Nicolas Geoffray <ngeoffray@google.com>
    Cc: Peter Xu <peterx@redhat.com>
    Cc: Ryan Roberts <ryan.roberts@arm.com>
    Cc: Shuah Khan <shuah@kernel.org>
    Cc: ZhangPeng <zhangpeng362@huawei.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    a5b7620b
uffd-unit-tests.c 39.1 KB