[libvirt] [PATCH] virprocess: Extend list of platforms for setns wrapper
Ján Tomko
jtomko at redhat.com
Mon Sep 15 13:50:36 UTC 2014
On 09/15/2014 03:43 PM, Michal Privoznik wrote:
> Currently, the setns() wrapper is supported only for x86_64 and i686
> which leaves us failing to build on other platforms like arm, aarch64
> and so on. This means, that the wrapper needs to be extended to those
> platforms and make to fail on runtime not compile time.
>
> The syscall numbers for other platforms was fetched using this
> command:
>
> kernel.git $ git grep "define.*__NR_setns" | grep -e arm -e powerpc -e s390
> arch/arm/include/uapi/asm/unistd.h:#define __NR_setns (__NR_SYSCALL_BASE+375)
> arch/arm64/include/asm/unistd32.h:#define __NR_setns 375
> arch/powerpc/include/uapi/asm/unistd.h:#define __NR_setns 350
> arch/s390/include/uapi/asm/unistd.h:#define __NR_setns 339
>
> Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
> ---
> src/util/virprocess.c | 18 ++++++++++++------
> 1 file changed, 12 insertions(+), 6 deletions(-)
ACK
Jan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140915/da1756d9/attachment-0001.sig>
More information about the libvir-list
mailing list