qemu/plugins
Ziyang Zhang 731525c276 plugins: use int64_t for the syscall filter return value
The syscall return value passed back through the syscall filter
callback is semantically signed: negative values encode errno codes.
Declaring the sysret pointer as uint64_t * is therefore misleading and
forces callers to launder the value through an unsigned temporary.

Change the sysret pointer to int64_t * across the public plugin API
typedef (qemu_plugin_vcpu_syscall_filter_cb_t), the internal
qemu_plugin_vcpu_syscall_filter() prototypes and stub, its
implementation in plugins/core.c, the linux-user caller, and the
in-tree example plugins.

Signed-off-by: Ziyang Zhang <functioner@sjtu.edu.cn>
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>
Link: https://lore.kernel.org/qemu-devel/20260618082426.790315-2-functioner@sjtu.edu.cn
Signed-off-by: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>
2026-06-18 16:47:12 -07:00
..
api-system.c plugins/api-system: Handle migrate_add_blocker() failure 2026-03-17 12:13:16 -07:00
api-user.c plugins/api: split out time control helpers 2025-03-10 10:30:01 +00:00
api.c accel/tcg: Move cpu_loop_exit_*() out of 'exec/cpu-common.h' 2026-06-18 14:27:21 +02:00
core.c plugins: use int64_t for the syscall filter return value 2026-06-18 16:47:12 -07:00
loader.c plugins: remove qemu_plugin_id_t from qemu_plugin_udata_cb_t 2026-06-16 10:59:05 -07:00
meson.build plugins: fix cross-build using LLVM for Windows targets 2026-02-10 12:58:31 -08:00
plugin.h plugins: add userdata for qemu_plugin_{uninstall, reset} 2026-06-16 10:59:05 -07:00
system.c include: move hw/boards.h to hw/core/ 2025-12-27 10:11:06 +01:00
user.c plugins/loader: compile loader only once 2025-03-10 10:30:01 +00:00
win32_linker.c plugins: move win32_linker.c file to plugins directory 2026-01-29 09:34:14 -08:00