[PATCH 0/2] add explicit virtual time callback for plugins

Alex Bennée posted 2 patches 7 months, 2 weeks ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20250403113851.4182190-1-alex.bennee@linaro.org
Maintainers: Richard Henderson <richard.henderson@linaro.org>, Paolo Bonzini <pbonzini@redhat.com>, "Alex Bennée" <alex.bennee@linaro.org>, Alexandre Iooss <erdnaxe@crans.org>, Mahmoud Mandour <ma.mandourr@gmail.com>, Pierrick Bouvier <pierrick.bouvier@linaro.org>
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(+)
[PATCH 0/2] add explicit virtual time callback for plugins
Posted by Alex Bennée 7 months, 2 weeks ago
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