qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Pierrick Bouvier <pierrick.bouvier@linaro.org>
To: Richard Henderson <richard.henderson@linaro.org>, qemu-devel@nongnu.org
Subject: Re: [PATCH v4 16/18] plugins: remove non per_vcpu inline operation from API
Date: Wed, 14 Feb 2024 13:56:19 +0400	[thread overview]
Message-ID: <0cb0e0a0-d9b2-4363-b7aa-2f978aa203fe@linaro.org> (raw)
In-Reply-To: <051cd462-ed28-4c52-aeb2-eaaa01956d82@linaro.org>

On 2/13/24 22:44, Richard Henderson wrote:
> On 2/12/24 23:40, Pierrick Bouvier wrote:
>> Now we have a thread-safe equivalent of inline operation, and that all
>> plugins were changed to use it, there is no point to keep the old API.
>>
>> In more, it will help when we implement more functionality (conditional
>> callbacks), as we can assume that we operate on a scoreboard.
>>
>> Bump API version as it's a breaking change for existing plugins.
>> Bump min API version too, as we removed some functions.
>>
>> Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
>> ---
>>    include/qemu/qemu-plugin.h   | 58 ++++--------------------------------
>>    plugins/plugin.h             |  2 +-
>>    plugins/api.c                | 29 ------------------
>>    plugins/qemu-plugins.symbols |  3 --
>>    4 files changed, 6 insertions(+), 86 deletions(-)
>>
>> diff --git a/include/qemu/qemu-plugin.h b/include/qemu/qemu-plugin.h
>> index cdf1266d724..9b11098ff82 100644
>> --- a/include/qemu/qemu-plugin.h
>> +++ b/include/qemu/qemu-plugin.h
>> @@ -53,11 +53,15 @@ typedef uint64_t qemu_plugin_id_t;
>>     * symbol qemu_plugin_version which can be checked.
>>     *
>>     * version 2: removed qemu_plugin_n_vcpus and qemu_plugin_n_max_vcpus
>> + * version 3:
>> + * Remove qemu_plugin_register_vcpu_{tb, insn, mem}_exec_inline.
>> + * Those functions are replaced by *_per_vcpu variants, which guarantees
>> + * thread-safety for operations.
> 
> You don't need to bump again, as we won't have a release in the middle of your patch set.
> 
I'll bump this once. Discussing with Alex, only release points are 
important. Users tracking master are expected to detect and fix this.

> Otherwise,
> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
> 
> 
> r~


  reply	other threads:[~2024-02-14  9:57 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-13  9:39 [PATCH v4 00/18] TCG Plugin inline operation enhancement Pierrick Bouvier
2024-02-13  9:39 ` [PATCH v4 01/18] plugins: remove previous n_vcpus functions from API Pierrick Bouvier
2024-02-13 18:07   ` Richard Henderson
2024-02-13  9:39 ` [PATCH v4 02/18] plugins: add qemu_plugin_num_vcpus function Pierrick Bouvier
2024-02-13 18:10   ` Richard Henderson
2024-02-13  9:39 ` [PATCH v4 03/18] plugins: fix order of init/idle/resume callback Pierrick Bouvier
2024-02-13  9:39 ` [PATCH v4 04/18] cpu: call plugin init hook asynchronously Pierrick Bouvier
2024-02-13  9:39 ` [PATCH v4 05/18] plugins: scoreboard API Pierrick Bouvier
2024-02-13 18:23   ` Richard Henderson
2024-02-13  9:39 ` [PATCH v4 06/18] plugins: define qemu_plugin_u64 Pierrick Bouvier
2024-02-13 18:29   ` Richard Henderson
2024-02-13  9:39 ` [PATCH v4 07/18] docs/devel: plugins can trigger a tb flush Pierrick Bouvier
2024-02-13 18:33   ` Richard Henderson
2024-02-13  9:39 ` [PATCH v4 08/18] plugins: implement inline operation relative to cpu_index Pierrick Bouvier
2024-02-13  9:39 ` [PATCH v4 09/18] plugins: add inline operation per vcpu Pierrick Bouvier
2024-02-13 18:42   ` Richard Henderson
2024-02-13  9:40 ` [PATCH v4 10/18] tests/plugin: add test plugin for inline operations Pierrick Bouvier
2024-02-13  9:40 ` [PATCH v4 11/18] tests/plugin/mem: migrate to new per_vcpu API Pierrick Bouvier
2024-02-13  9:40 ` [PATCH v4 12/18] tests/plugin/insn: " Pierrick Bouvier
2024-02-13  9:40 ` [PATCH v4 13/18] tests/plugin/bb: " Pierrick Bouvier
2024-02-13  9:40 ` [PATCH v4 14/18] contrib/plugins/hotblocks: " Pierrick Bouvier
2024-02-13  9:40 ` [PATCH v4 15/18] contrib/plugins/howvec: " Pierrick Bouvier
2024-02-13  9:40 ` [PATCH v4 16/18] plugins: remove non per_vcpu inline operation from API Pierrick Bouvier
2024-02-13 18:44   ` Richard Henderson
2024-02-14  9:56     ` Pierrick Bouvier [this message]
2024-02-13  9:40 ` [PATCH v4 17/18] plugins: cleanup codepath for previous inline operation Pierrick Bouvier
2024-02-13 18:45   ` Richard Henderson
2024-02-13  9:40 ` [PATCH v4 18/18] MAINTAINERS: Add myself as reviewer for TCG Plugins Pierrick Bouvier
2024-02-13 18:45   ` Richard Henderson
2024-02-16 16:20 ` [PATCH v4 00/18] TCG Plugin inline operation enhancement Alex Bennée

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=0cb0e0a0-d9b2-4363-b7aa-2f978aa203fe@linaro.org \
    --to=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).