qemu-e2k/plugins
Pierrick Bouvier a3c2cf0b89 plugins: scoreboard API
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 a global lock for
simple operations.

At any point during execution, any scoreboard will be dimensioned with
at least qemu_plugin_num_vcpus entries.

New functions:
- qemu_plugin_scoreboard_find
- qemu_plugin_scoreboard_free
- qemu_plugin_scoreboard_new

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Message-Id: <20240304130036.124418-2-pierrick.bouvier@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20240305121005.3528075-15-alex.bennee@linaro.org>
2024-03-06 12:35:19 +00:00
..
api.c plugins: scoreboard API 2024-03-06 12:35:19 +00:00
core.c plugins: scoreboard API 2024-03-06 12:35:19 +00:00
loader.c misc: Clean up includes 2024-01-30 21:20:20 +03:00
meson.build configure, meson: rename targetos to host_os 2023-12-31 09:11:29 +01:00
plugin.h plugins: scoreboard API 2024-03-06 12:35:19 +00:00
qemu-plugins.symbols plugins: scoreboard API 2024-03-06 12:35:19 +00:00