linux-vserver syscall ...
Hi Ralf!
obviously I forgot to ask you to reserve a syscall for linux-vserver, and I just discovered this as the currently used number (273) was used up by some other syscall (in 2.6.7-rc1) ...
so I'm asking you now, could you please reserve a syscall for this project, so that we do not need to change it on every new kernel release?
here is a list of currently reserved syscalls (for other archs) and some links to the project (in case you care)
arch number maintainer
--------------------------------------------
x86_64 236 [Andi Kleen] s390 263 [Martin Schwidefsky] sparc/64 267 [David S.Miller] i386 273 [Rik/Linus/Andrew] sh3/sh4 273 [Kazumoto Kojima] ppc/64 257 [Benjamin Herrenschmidt]
thanks in advance,
Herbert
Quoted 8 lines · Herbert Poetzl
Hi Ralf!
obviously I forgot to ask you to reserve a syscall for linux-vserver, and I just discovered this as the currently used number (273) was used up by some other syscall (in 2.6.7-rc1) ...
Quoted 7 lines
so I'm asking you now, could you please reserve a syscall for this project, so that we do not need to change it on every new kernel release?
here is a list of currently reserved syscalls (for other archs) and some links to the project (in case you care)
hmm, "a brain, I need a brain for my master" ...
okay here are the promised links:
http://www.linux-vserver.org/
http://vserver.13thfloor.at/Stuff/PAPER-05.4.txt
best,
Herbert
Quoted 12 lines
arch number maintainer
--------------------------------------------x86_64 236 [Andi Kleen] s390 263 [Martin Schwidefsky] sparc/64 267 [David S.Miller] i386 273 [Rik/Linus/Andrew] sh3/sh4 273 [Kazumoto Kojima] ppc/64 257 [Benjamin Herrenschmidt]thanks in advance,
Herbert
Quoted 5 lines · Herbert Poetzl
obviously I forgot to ask you to reserve a syscall for linux-vserver, and I just discovered this as the currently used number (273) was used up by some other syscall (in 2.6.7-rc1) ...
Quoted 7 lines
so I'm asking you now, could you please reserve a syscall for this project, so that we do not need to change it on every new kernel release?
here is a list of currently reserved syscalls (for other archs) and some links to the project (in case you care)
Not really - other than the fact that I'm reluctant to reserve syscall numbers for something that might never make it into the kernel so usually i386 reserving a syscall is what convinces me ...
Due to the three support ABIs you actually get 3 syscall numbers even. o32 gets 277, N64 236 and N32 240. Patch is below.
Ralf
Index: arch/mips/kernel/scall32-o32.S
===================================================================
RCS file: /home/cvs/linux/arch/mips/kernel/scall32-o32.S,v retrieving revision 1.8
mips/kernel/scall32-o32.S +1 -0
@@ -627,6 +627,7 @@ sys sys_mq_timedreceive 5 sys sys_mq_notify 2 /* 4275 */ sys sys_mq_getsetattr 3 + sys sys_ni_syscall 0 /* sys_vserver */ .endm
Index: arch/mips/kernel/scall64-64.S
===================================================================
RCS file: /home/cvs/linux/arch/mips/kernel/scall64-64.S,v retrieving revision 1.12
mips/kernel/scall64-64.S +1 -0
@@ -447,3 +447,4 @@ PTR sys_mq_timedreceive PTR sys_mq_notify PTR sys_mq_getsetattr /* 5235 */ + PTR sys_ni_syscall /* sys_vserver */
Index: arch/mips/kernel/scall64-n32.S
===================================================================
RCS file: /home/cvs/linux/arch/mips/kernel/scall64-n32.S,v retrieving revision 1.11
mips/kernel/scall64-n32.S +1 -0
@@ -357,3 +357,4 @@ PTR compat_sys_mq_timedreceive PTR compat_sys_mq_notify PTR compat_sys_mq_getsetattr /* 6239 */ + PTR sys_ni_syscall /* sys_vserver */
Index: arch/mips/kernel/scall64-o32.S
===================================================================
RCS file: /home/cvs/linux/arch/mips/kernel/scall64-o32.S,v retrieving revision 1.11
mips/kernel/scall64-o32.S +1 -0
@@ -535,6 +535,7 @@ sys compat_sys_mq_timedreceive 5 sys compat_sys_mq_notify 2 /* 4275 */ sys compat_sys_mq_getsetattr 3 + sys sys_ni_syscall 0 /* sys_vserver */ .endm
Index: include/asm-mips/unistd.h
===================================================================
RCS file: /home/cvs/linux/include/asm-mips/unistd.h,v retrieving revision 1.62
asm-mips/unistd.h +9 -6
@@ -297,16 +297,17 @@#define __NR_mq_timedreceive (__NR_Linux + 274)#define __NR_mq_notify (__NR_Linux + 275)#define __NR_mq_getsetattr (__NR_Linux + 276) +#define __NR_vserver (__NR_Linux + 277)/* * Offset of the last Linux o32 flavoured syscall */ -#define __NR_Linux_syscalls 276 +#define __NR_Linux_syscalls 277#endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */ #define __NR_O32_Linux 4000 -#define __NR_O32_Linux_syscalls 276 +#define __NR_O32_Linux_syscalls 277#if _MIPS_SIM == _MIPS_SIM_ABI64
@@ -550,16 +551,17 @@#define __NR_mq_timedreceive (__NR_Linux + 233)#define __NR_mq_notify (__NR_Linux + 234)#define __NR_mq_getsetattr (__NR_Linux + 235) +#define __NR_vserver (__NR_Linux + 236)/* * Offset of the last Linux flavoured syscall */ -#define __NR_Linux_syscalls 235 +#define __NR_Linux_syscalls 236#endif /* _MIPS_SIM == _MIPS_SIM_ABI64 */ #define __NR_64_Linux 5000 -#define __NR_64_Linux_syscalls 235 +#define __NR_64_Linux_syscalls 236#if _MIPS_SIM == _MIPS_SIM_NABI32
@@ -807,16 +809,17 @@#define __NR_mq_timedreceive (__NR_Linux + 237)#define __NR_mq_notify (__NR_Linux + 238)#define __NR_mq_getsetattr (__NR_Linux + 239) +#define __NR_vserver (__NR_Linux + 240)/* * Offset of the last N32 flavoured syscall */ -#define __NR_Linux_syscalls 239 +#define __NR_Linux_syscalls 240#endif /* _MIPS_SIM == _MIPS_SIM_NABI32 */ #define __NR_N32_Linux 6000 -#define __NR_N32_Linux_syscalls 239 +#define __NR_N32_Linux_syscalls 240#ifndef __ASSEMBLY__
Quoted 15 lines · Ralf Baechle
Quoted 5 lines · Herbert Poetzl
obviously I forgot to ask you to reserve a syscall for linux-vserver, and I just discovered this as the currently used number (273) was used up by some other syscall (in 2.6.7-rc1) ...
Quoted 7 lines
so I'm asking you now, could you please reserve a syscall for this project, so that we do not need to change it on every new kernel release?
here is a list of currently reserved syscalls (for other archs) and some links to the project (in case you care)
Quoted 6 lines
Not really - other than the fact that I'm reluctant to reserve syscall numbers for something that might never make it into the kernel so usually i386 reserving a syscall is what convinces me ...
Due to the three support ABIs you actually get 3 syscall numbers even. o32 gets 277, N64 236 and N32 240. Patch is below.
thank you very much!
best,
Herbert
Quoted 1 line
Ralf