qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] add explicit virtual time callback for plugins
@ 2025-04-03 11:38 Alex Bennée
  2025-04-03 11:38 ` [PATCH 1/2] accel/tcg: add get_virtual_clock for TCG Alex Bennée
  2025-04-03 11:38 ` [PATCH 2/2] plugins: add qemu_plugin_register_time_cb support Alex Bennée
  0 siblings, 2 replies; 8+ messages in thread
From: Alex Bennée @ 2025-04-03 11:38 UTC (permalink / raw)
  To: qemu-devel
  Cc: Mahmoud Mandour, Pierrick Bouvier, Richard Henderson,
	Alex Bennée, Mark Burton, Alwalid Salama, Laurent Vivier,
	Paolo Bonzini, Alexandre Iooss

When we added qemu_plugin_update_ns() to advance time we missed the
fact that users of virtual clock don't get updated. Rather than
implement the logic inside QEMU to keep track of the magic number lets
just delegate it to the plugin instead.

Compile tested only.

Alex.

Alex Bennée (2):
  accel/tcg: add get_virtual_clock for TCG
  plugins: add qemu_plugin_register_time_cb support

 include/qemu/plugin-event.h |  1 +
 include/qemu/plugin.h       |  9 +++++++++
 include/qemu/qemu-plugin.h  | 18 ++++++++++++++++++
 accel/tcg/tcg-accel-ops.c   | 11 +++++++++++
 plugins/api-system.c        |  8 ++++++++
 plugins/core.c              | 22 ++++++++++++++++++++++
 6 files changed, 69 insertions(+)

-- 
2.39.5



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

end of thread, other threads:[~2025-04-08  9:35 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-03 11:38 [PATCH 0/2] add explicit virtual time callback for plugins Alex Bennée
2025-04-03 11:38 ` [PATCH 1/2] accel/tcg: add get_virtual_clock for TCG Alex Bennée
2025-04-03 18:10   ` Pierrick Bouvier
2025-04-08  8:20   ` Mark Burton
2025-04-08  8:49     ` Alex Bennée
2025-04-08  9:34       ` Mark Burton
2025-04-03 11:38 ` [PATCH 2/2] plugins: add qemu_plugin_register_time_cb support Alex Bennée
2025-04-03 18:14   ` Pierrick Bouvier

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).