On 2/6/24 19:24, Pierrick Bouvier wrote:
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.

Signed-off-by: Pierrick Bouvier<pierrick.bouv...@linaro.org>
---
  plugins/core.c | 9 +++++++--
  1 file changed, 7 insertions(+), 2 deletions(-)

Reviewed-by: Richard Henderson <richard.hender...@linaro.org>

r~

Reply via email to