On 11/10/25 5:34 AM, Ziyang Zhang wrote:
This commit adds a syscall filter API to the TCG plugin API set.
Plugins can register a filter callback to QEMU to decide whether
to intercept a syscall, process it and bypass the QEMU syscall
handler.

Signed-off-by: Ziyang Zhang <[email protected]>
Co-authored-by: Mingyuan Xia <[email protected]>
---
  include/qemu/plugin-event.h  |  1 +
  include/qemu/plugin.h        | 29 +++++++++++++++++++++--------
  include/qemu/qemu-plugin.h   | 24 ++++++++++++++++++++++++
  include/user/syscall-trace.h | 17 +++++++++++++++++
  linux-user/syscall.c         |  7 +++++--
  plugins/api.c                |  7 +++++++
  plugins/core.c               | 36 ++++++++++++++++++++++++++++++++++++
  7 files changed, 111 insertions(+), 10 deletions(-)

Looks good to me, and will be useful for syscalls obervation, fuzzing, and integrating native libraries through hypercall mechanism.
It's worth merging this.

Reviewed-by: Pierrick Bouvier <[email protected]>

Reply via email to