Skip to content

Commit 09f7298

Browse files
dagrhtorvalds
authored andcommitted
userfaultfd: register uapi generic syscall (aarch64)
Add the userfaultfd syscalls to uapi asm-generic, it was tested with postcopy live migration on aarch64 with both 4k and 64k pagesize kernels. Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Signed-off-by: Andrea Arcangeli <aarcange@redhat.com> Cc: Michael Ellerman <mpe@ellerman.id.au> Cc: Shuah Khan <shuahkh@osg.samsung.com> Cc: Thierry Reding <treding@nvidia.com> Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 5dd01be commit 09f7298

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

include/uapi/asm-generic/unistd.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -709,17 +709,19 @@ __SYSCALL(__NR_memfd_create, sys_memfd_create)
709709
__SYSCALL(__NR_bpf, sys_bpf)
710710
#define __NR_execveat 281
711711
__SC_COMP(__NR_execveat, sys_execveat, compat_sys_execveat)
712-
#define __NR_membarrier 282
712+
#define __NR_userfaultfd 282
713+
__SYSCALL(__NR_userfaultfd, sys_userfaultfd)
714+
#define __NR_membarrier 283
713715
__SYSCALL(__NR_membarrier, sys_membarrier)
714716

715717
#undef __NR_syscalls
716-
#define __NR_syscalls 283
718+
#define __NR_syscalls 284
717719

718720
/*
719721
* All syscalls below here should go away really,
720722
* these are provided for both review and as a porting
721723
* help for the C library version.
722-
*
724+
*
723725
* Last chance: are any of these important enough to
724726
* enable by default?
725727
*/

0 commit comments

Comments
 (0)