Re: [PATCH v2 02/14] plugins: scoreboard API

2024-01-31 Thread Pierrick Bouvier
On 1/31/24 11:44, Pierrick Bouvier wrote: On 1/26/24 19:14, Alex Bennée wrote: +need_realloc = TRUE; +} +plugin.scoreboard_size = cpu->cpu_index + 1; +g_assert(plugin.scoreboard_size <= plugin.scoreboard_alloc_size); + +if (g_hash_table_size(plugin.scoreboards) == 0) { +

Re: [PATCH v2 02/14] plugins: scoreboard API

2024-01-30 Thread Pierrick Bouvier
On 1/26/24 19:14, Alex Bennée wrote: +need_realloc = TRUE; +} +plugin.scoreboard_size = cpu->cpu_index + 1; +g_assert(plugin.scoreboard_size <= plugin.scoreboard_alloc_size); + +if (g_hash_table_size(plugin.scoreboards) == 0) { +/* nothing to do, we just updated si

Re: [PATCH v2 02/14] plugins: scoreboard API

2024-01-30 Thread Pierrick Bouvier
On 1/30/24 14:23, Alex Bennée wrote: Pierrick Bouvier writes: On 1/26/24 19:14, Alex Bennée wrote: Pierrick Bouvier writes: We introduce a cpu local storage, automatically managed (and extended) by QEMU itself. Plugin allocate a scoreboard, and don't have to deal with how many cpus are lau

Re: [PATCH v2 02/14] plugins: scoreboard API

2024-01-30 Thread Alex Bennée
Pierrick Bouvier writes: > On 1/26/24 19:14, Alex Bennée wrote: >> Pierrick Bouvier writes: >> >>> We introduce a cpu local storage, automatically managed (and extended) >>> by QEMU itself. Plugin allocate a scoreboard, and don't have to deal >>> with how many cpus are launched. >>> >>> This AP

Re: [PATCH v2 02/14] plugins: scoreboard API

2024-01-29 Thread Pierrick Bouvier
On 1/26/24 19:14, Alex Bennée wrote: Pierrick Bouvier writes: We introduce a cpu local storage, automatically managed (and extended) by QEMU itself. Plugin allocate a scoreboard, and don't have to deal with how many cpus are launched. This API will be used by new inline functions but callback

Re: [PATCH v2 02/14] plugins: scoreboard API

2024-01-26 Thread Alex Bennée
Pierrick Bouvier writes: > We introduce a cpu local storage, automatically managed (and extended) > by QEMU itself. Plugin allocate a scoreboard, and don't have to deal > with how many cpus are launched. > > This API will be used by new inline functions but callbacks can benefit > from this as we

[PATCH v2 02/14] plugins: scoreboard API

2024-01-17 Thread Pierrick Bouvier
We introduce a cpu local storage, automatically managed (and extended) by QEMU itself. Plugin allocate a scoreboard, and don't have to deal with how many cpus are launched. This API will be used by new inline functions but callbacks can benefit from this as well. This way, they can operate without