From: Ziyang Zhang <functioner@sjtu.edu.cn>
To: qemu-devel <qemu-devel@nongnu.org>
Cc: Riku Voipio <riku.voipio@iki.fi>,
Laurent Vivier <laurent@vivier.eu>,
Alex Bennee <alex.bennee@linaro.org>,
Alexandre Iooss <erdnaxe@crans.org>,
Mahmoud Mandour <ma.mandourr@gmail.com>,
Pierrick Bouvier <pierrick.bouvier@linaro.org>,
Richard Henderson <richard.henderson@linaro.org>,
Zhengwei Qi <qizhwei@sjtu.edu.cn>,
Yun Wang <yunwang94@sjtu.edu.cn>,
Mingyuan Xia <xiamy@ultrarisc.com>,
Kailiang Xu <xukl2019@sjtu.edu.cn>,
Ziyang Zhang <functioner@sjtu.edu.cn>
Subject: [PATCH v4 0/2] linux-user: introduce syscall-filter plugin API
Date: Sun, 14 Dec 2025 22:46:18 +0800 [thread overview]
Message-ID: <20251214144620.179282-1-functioner@sjtu.edu.cn> (raw)
We choose a smaller magic syscall number to avoid the illegal instruction
exception [1] on qemu-arm.
PATCH v4:
1. Modify some comments
PATCH v3:
1. Change to a smaller magic syscall number and add comments
2. Set register flags out of the for-loop
PATCH v2:
1. Rebased on newest version of master
PATCH v1:
1. Format the code
RFC v2:
1. Simplify the syscall filter mechanism and remove fork-cpu
2. Add QEMU_PLUGIN_EV_VCPU_SYSCALL_FILTER enum
RFC v1:
1. Add syscall filter registry
2. Add fork-cpu interface to re-enter cpu_loop when handling syscalls
Ziyang Zhang (2):
linux-user: add plugin API to filter syscalls
tcg tests: add a test to verify the syscall filter plugin API
include/qemu/plugin-event.h | 1 +
include/qemu/plugin.h | 33 ++++++++++++-----
include/qemu/qemu-plugin.h | 32 ++++++++++++++++
include/user/syscall-trace.h | 17 +++++++++
linux-user/syscall.c | 7 +++-
plugins/api.c | 7 ++++
plugins/core.c | 37 +++++++++++++++++++
tests/tcg/multiarch/Makefile.target | 4 +-
.../multiarch/test-plugin-syscall-filter.c | 35 ++++++++++++++++++
tests/tcg/plugins/syscall.c | 19 ++++++++++
10 files changed, 180 insertions(+), 12 deletions(-)
create mode 100644 tests/tcg/multiarch/test-plugin-syscall-filter.c
--
2.34.1
next reply other threads:[~2025-12-14 14:47 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-14 14:46 Ziyang Zhang [this message]
2025-12-14 14:46 ` [PATCH v4 1/2] linux-user: add plugin API to filter syscalls Ziyang Zhang
2025-12-15 17:57 ` Pierrick Bouvier
2025-12-14 14:46 ` [PATCH v4 2/2] tcg tests: add a test to verify the syscall filter plugin API Ziyang Zhang
2025-12-15 17:57 ` Pierrick Bouvier
2025-12-17 18:07 ` [PATCH v4 0/2] linux-user: introduce syscall-filter " Alex Bennée
2026-02-02 5:28 ` Pierrick Bouvier
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=20251214144620.179282-1-functioner@sjtu.edu.cn \
--to=functioner@sjtu.edu.cn \
--cc=alex.bennee@linaro.org \
--cc=erdnaxe@crans.org \
--cc=laurent@vivier.eu \
--cc=ma.mandourr@gmail.com \
--cc=pierrick.bouvier@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=qizhwei@sjtu.edu.cn \
--cc=richard.henderson@linaro.org \
--cc=riku.voipio@iki.fi \
--cc=xiamy@ultrarisc.com \
--cc=xukl2019@sjtu.edu.cn \
--cc=yunwang94@sjtu.edu.cn \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.