qemu-e2k/plugins
Pierrick Bouvier c490e681ec plugins: fix order of init/idle/resume callback
We found that vcpu_init_hook was called *after* idle callback.
vcpu_init is called from cpu_realize_fn, while idle/resume cb are called
from qemu_wait_io_event (in vcpu thread).

This change ensures we only call idle and resume cb only once a plugin
was init for a given vcpu.

Next change in the series will run vcpu_init asynchronously, which will
make it run *after* resume callback as well. So we fix this now.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Message-Id: <20240213094009.150349-4-pierrick.bouvier@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20240227144335.1196131-18-alex.bennee@linaro.org>
2024-02-28 09:11:38 +00:00
..
api.c plugins: add qemu_plugin_num_vcpus function 2024-02-28 09:11:36 +00:00
core.c plugins: fix order of init/idle/resume callback 2024-02-28 09:11:38 +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: add qemu_plugin_num_vcpus function 2024-02-28 09:11:36 +00:00
qemu-plugins.symbols plugins: add qemu_plugin_num_vcpus function 2024-02-28 09:11:36 +00:00