From: "Alex Bennée" <alex.bennee@linaro.org>
To: qemu-devel@nongnu.org
Cc: "Mahmoud Mandour" <ma.mandourr@gmail.com>,
"Pierrick Bouvier" <pierrick.bouvier@linaro.org>,
"Richard Henderson" <richard.henderson@linaro.org>,
"Alex Bennée" <alex.bennee@linaro.org>,
"Mark Burton" <mburton@qti.qualcomm.com>,
"Alwalid Salama" <asalama@qti.qualcomm.com>,
"Laurent Vivier" <laurent@vivier.eu>,
"Paolo Bonzini" <pbonzini@redhat.com>,
"Alexandre Iooss" <erdnaxe@crans.org>
Subject: [PATCH 0/2] add explicit virtual time callback for plugins
Date: Thu, 3 Apr 2025 12:38:49 +0100 [thread overview]
Message-ID: <20250403113851.4182190-1-alex.bennee@linaro.org> (raw)
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
next reply other threads:[~2025-04-03 11:40 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-03 11:38 Alex Bennée [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250403113851.4182190-1-alex.bennee@linaro.org \
--to=alex.bennee@linaro.org \
--cc=asalama@qti.qualcomm.com \
--cc=erdnaxe@crans.org \
--cc=laurent@vivier.eu \
--cc=ma.mandourr@gmail.com \
--cc=mburton@qti.qualcomm.com \
--cc=pbonzini@redhat.com \
--cc=pierrick.bouvier@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).