diff options
| author | Pierrick Bouvier <pierrick.bouvier@linaro.org> | 2024-02-27 14:43:23 +0000 |
|---|---|---|
| committer | Alex Bennée <alex.bennee@linaro.org> | 2024-02-28 09:11:38 +0000 |
| commit | c490e681ecce6d035fb67f02c2b674ab62a667f6 (patch) | |
| tree | c12a4282e0b13701dd9165903a56a259a7df1922 /hw/core/cpu-common.c | |
| parent | 4a448b148ca076d80a41addd4fc1e49497cb23c8 (diff) | |
| download | focaccia-qemu-c490e681ecce6d035fb67f02c2b674ab62a667f6.tar.gz focaccia-qemu-c490e681ecce6d035fb67f02c2b674ab62a667f6.zip | |
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>
Diffstat (limited to 'hw/core/cpu-common.c')
0 files changed, 0 insertions, 0 deletions