On Tue, Sep 15, 2015 at 01:02:53PM -0700, Andrew Morton wrote: > sys_membarrier got there first. Does this version look OK? Yes, but it's up to you. While rebasing my tree on latest upstream I actually moved userfaultfd to 283 here, as membarrier was already upstream at 282. It makes no difference to me if userfaultfd gets 283 if you prefer to leave 282 to membarrier considering it's already upstream. The selftest will pick whatever number it gets with "make headers_install" so it wouldn't require updates. Thanks, Andrea > > From: "Dr. David Alan Gilbert" <dgilbert@xxxxxxxxxx> > Subject: 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@xxxxxxxxxx> > Signed-off-by: Andrea Arcangeli <aarcange@xxxxxxxxxx> > Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> > --- > > include/uapi/asm-generic/unistd.h | 8 +++++--- > 1 file changed, 5 insertions(+), 3 deletions(-) > > diff -puN include/uapi/asm-generic/unistd.h~userfaultfd-register-uapi-generic-syscall-aarch64 include/uapi/asm-generic/unistd.h > --- a/include/uapi/asm-generic/unistd.h~userfaultfd-register-uapi-generic-syscall-aarch64 > +++ a/include/uapi/asm-generic/unistd.h > @@ -709,17 +709,19 @@ __SYSCALL(__NR_memfd_create, sys_memfd_c > __SYSCALL(__NR_bpf, sys_bpf) > #define __NR_execveat 281 > __SC_COMP(__NR_execveat, sys_execveat, compat_sys_execveat) > -#define __NR_membarrier 282 > +#define __NR_userfaultfd 282 > +__SYSCALL(__NR_userfaultfd, sys_userfaultfd) > +#define __NR_membarrier 283 > __SYSCALL(__NR_membarrier, sys_membarrier) > > #undef __NR_syscalls > -#define __NR_syscalls 283 > +#define __NR_syscalls 284 > > /* > * 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? > */ > _ > -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>