]> git.proxmox.com Git - mirror_qemu.git/commit - linux-user/syscall.c
linux-user: emulate msgsnd(), msgrcv() and semtimedop()
authorLaurent Vivier <laurent@vivier.eu>
Wed, 29 May 2019 08:48:04 +0000 (10:48 +0200)
committerLaurent Vivier <laurent@vivier.eu>
Mon, 24 Jun 2019 20:59:14 +0000 (22:59 +0200)
commit524fa3408ed745a2fed0642fb0d92c934d10ff64
tree72960df4801bbe376faf1d61e5d034674cfed125
parentf3a8bdc1d5b260d31422edd46360ff849dfbcc93
linux-user: emulate msgsnd(), msgrcv() and semtimedop()

When we have updated kernel headers to 5.2-rc1 we have introduced
new syscall numbers that can be not supported by older kernels
and fail with ENOSYS while the guest emulation succeeded before
because the syscalls were emulated with ipc().

This patch fixes the problem by using ipc() if the new syscall
returns ENOSYS.

Fixes: 86e636951ddc ("linux-user: fix __NR_semtimedop undeclared error")
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Message-Id: <20190529084804.25950-1-laurent@vivier.eu>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
linux-user/syscall.c
linux-user/syscall_defs.h