All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] plugins: fix syscall filter return value type
@ 2026-06-12  5:56 Ziyang Zhang
  2026-06-12  5:56 ` [PATCH 1/1] plugins: use int64_t for the syscall filter return value Ziyang Zhang
  2026-06-12  7:59 ` [PATCH 0/1] plugins: fix syscall filter return value type Ziyang Zhang
  0 siblings, 2 replies; 5+ messages in thread
From: Ziyang Zhang @ 2026-06-12  5:56 UTC (permalink / raw)
  To: qemu-devel
  Cc: Riku Voipio, Laurent Vivier, Alex Bennee, Alexandre Iooss,
	Mahmoud Mandour, Pierrick Bouvier, Richard Henderson, Zhengwei Qi,
	Yun Wang, Mingyuan Xia, Kailiang Xu, Ziyang Zhang

Hi,

The syscall filter plugin interface was introduced by me earlier. Its
sysret value is declared as uint64_t, but it is semantically signed --
negative values encode errno codes -- so it should be int64_t. This
also makes it consistent with the ret parameter of
qemu_plugin_vcpu_syscall_ret(), which is already int64_t.

I did not bump QEMU_PLUGIN_VERSION: this is only a signedness fix, and
a version bump is better left for the next significant plugin API
update.

Thanks for your review.

Ziyang Zhang (1):
  plugins: use int64_t for the syscall filter return value

 include/plugins/qemu-plugin.h | 2 +-
 include/qemu/plugin.h         | 4 ++--
 linux-user/syscall.c          | 2 +-
 plugins/core.c                | 2 +-
 tests/tcg/plugins/setpc.c     | 2 +-
 tests/tcg/plugins/syscall.c   | 2 +-
 6 files changed, 7 insertions(+), 7 deletions(-)

-- 
2.34.1



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-06-12 12:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-12  5:56 [PATCH 0/1] plugins: fix syscall filter return value type Ziyang Zhang
2026-06-12  5:56 ` [PATCH 1/1] plugins: use int64_t for the syscall filter return value Ziyang Zhang
2026-06-12 10:43   ` Alex Bennée
2026-06-12 12:48     ` Ziyang Zhang
2026-06-12  7:59 ` [PATCH 0/1] plugins: fix syscall filter return value type Ziyang Zhang

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.