From: Laurent Vivier <laurent@vivier.eu>
To: qemu-devel@nongnu.org
Cc: Andreas Schwab <schwab@suse.de>, Riku Voipio <riku.voipio@iki.fi>,
Laurent Vivier <laurent@vivier.eu>,
Aleksandar Markovic <amarkovic@wavecomp.com>,
Aleksandar Rikalo <aleksandar.rikalo@rt-rk.com>,
Aurelien Jarno <aurelien@aurel32.net>
Subject: [PULL 01/13] linux-user: Implement membarrier syscall
Date: Thu, 20 Feb 2020 10:20:41 +0100 [thread overview]
Message-ID: <20200220092053.1510215-2-laurent@vivier.eu> (raw)
In-Reply-To: <20200220092053.1510215-1-laurent@vivier.eu>
From: Andreas Schwab <schwab@suse.de>
Signed-off-by: Andreas Schwab <schwab@suse.de>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <mvmpnomohfm.fsf@suse.de>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
linux-user/syscall.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index c930577686da..7aaa9d96397c 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -334,6 +334,9 @@ _syscall5(int, kcmp, pid_t, pid1, pid_t, pid2, int, type,
_syscall5(int, sys_statx, int, dirfd, const char *, pathname, int, flags,
unsigned int, mask, struct target_statx *, statxbuf)
#endif
+#if defined(TARGET_NR_membarrier) && defined(__NR_membarrier)
+_syscall2(int, membarrier, int, cmd, int, flags)
+#endif
static bitmask_transtbl fcntl_flags_tbl[] = {
{ TARGET_O_ACCMODE, TARGET_O_WRONLY, O_ACCMODE, O_WRONLY, },
@@ -12090,6 +12093,10 @@ static abi_long do_syscall1(void *cpu_env, int num, abi_long arg1,
unlock_user(p, arg1, 0);
return ret;
#endif
+#if defined TARGET_NR_membarrier && defined __NR_membarrier
+ case TARGET_NR_membarrier:
+ return get_errno(membarrier(arg1, arg2));
+#endif
default:
qemu_log_mask(LOG_UNIMP, "Unsupported syscall: %d\n", num);
--
2.24.1
next prev parent reply other threads:[~2020-02-20 9:24 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-20 9:20 [PULL 00/13] Linux user for 5.0 patches Laurent Vivier
2020-02-20 9:20 ` Laurent Vivier [this message]
2020-02-20 9:20 ` [PULL 02/13] linux-user: implement getsockopt SO_RCVTIMEO and SO_SNDTIMEO Laurent Vivier
2020-02-20 9:20 ` [PULL 03/13] configure: linux-user doesn't need neither fdt nor slirp Laurent Vivier
2020-02-20 9:20 ` [PULL 04/13] linux-user/strace: Improve output of various syscalls Laurent Vivier
2020-02-20 9:20 ` [PULL 05/13] configure: Avoid compiling system tools on user build by default Laurent Vivier
2020-02-20 9:20 ` [PULL 06/13] linux-user: Use `qemu_log' for non-strace logging Laurent Vivier
2020-02-20 9:20 ` [PULL 07/13] linux-user: Use `qemu_log' for strace Laurent Vivier
2020-02-20 9:20 ` [PULL 08/13] linux-user: remove gemu_log from the linux-user tree Laurent Vivier
2020-02-20 9:20 ` [PULL 09/13] linux-user: Add support for getting alsa timer version and id Laurent Vivier
2020-02-20 9:20 ` [PULL 10/13] linux-user: Add support for getting/setting specified alsa timer parameters using ioctls Laurent Vivier
2020-02-20 9:20 ` [PULL 11/13] linux-user: Add support for selecting alsa timer using ioctl Laurent Vivier
2020-02-20 9:20 ` [PULL 12/13] linux-user: Add support for getting/setting selected alsa timer parameters using ioctls Laurent Vivier
2020-02-20 9:20 ` [PULL 13/13] linux-user: Add support for selected alsa timer instructions " Laurent Vivier
2020-02-21 11:24 ` [PULL 00/13] Linux user for 5.0 patches Peter Maydell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200220092053.1510215-2-laurent@vivier.eu \
--to=laurent@vivier.eu \
--cc=aleksandar.rikalo@rt-rk.com \
--cc=amarkovic@wavecomp.com \
--cc=aurelien@aurel32.net \
--cc=qemu-devel@nongnu.org \
--cc=riku.voipio@iki.fi \
--cc=schwab@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).