From: Dr. David Alan Gilbert Date: Tue, 22 Sep 2015 21:59:09 +0000 (-0700) Subject: userfaultfd: register uapi generic syscall (aarch64) X-Git-Tag: v4.1.12-92~16^2~18 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=73d9a73df69d774996b763c2279918d5c16ff323;p=users%2Fjedix%2Flinux-maple.git userfaultfd: register uapi generic syscall (aarch64) Orabug: 21685254 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 Signed-off-by: Andrea Arcangeli Cc: Michael Ellerman Cc: Shuah Khan Cc: Thierry Reding Cc: Mathieu Desnoyers Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds (cherry picked from commit 09f7298100ea9767324298ab0c7979f6d7463183) Signed-off-by: Mike Kravetz Reviewed-by: Dhaval Giani Conflicts: include/uapi/asm-generic/unistd.h Signed-off-by: Dhaval Giani --- diff --git a/include/uapi/asm-generic/unistd.h b/include/uapi/asm-generic/unistd.h index e016bd9b1a049..fb419168b67e9 100644 --- a/include/uapi/asm-generic/unistd.h +++ b/include/uapi/asm-generic/unistd.h @@ -709,15 +709,17 @@ __SYSCALL(__NR_memfd_create, sys_memfd_create) __SYSCALL(__NR_bpf, sys_bpf) #define __NR_execveat 281 __SC_COMP(__NR_execveat, sys_execveat, compat_sys_execveat) +#define __NR_userfaultfd 282 +__SYSCALL(__NR_userfaultfd, sys_userfaultfd) #undef __NR_syscalls -#define __NR_syscalls 282 +#define __NR_syscalls 283 /* * All syscalls below here should go away really, * these are provided for both review and as a porting * help for the C library version. -* + * * Last chance: are any of these important enough to * enable by default? */