From: Alex Bennée Date: Thu, 30 May 2024 19:42:49 +0000 (+0100) Subject: plugins: remove special casing for cpu->realized X-Git-Tag: v9.1.0-rc0~84^2~14 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2fa16246dd89b1a4500a89c105795814e7cbe7de;p=thirdparty%2Fqemu.git plugins: remove special casing for cpu->realized Now the condition variable is initialised early on we don't need to go through hoops to avoid calling async_run_on_cpu. Signed-off-by: Alex Bennée Reviewed-by: Pierrick Bouvier Message-ID: <20240530194250.1801701-5-alex.bennee@linaro.org> Signed-off-by: Philippe Mathieu-Daudé --- diff --git a/plugins/core.c b/plugins/core.c index 0726bc7f256..badede28cf9 100644 --- a/plugins/core.c +++ b/plugins/core.c @@ -65,11 +65,7 @@ static void plugin_cpu_update__locked(gpointer k, gpointer v, gpointer udata) CPUState *cpu = container_of(k, CPUState, cpu_index); run_on_cpu_data mask = RUN_ON_CPU_HOST_ULONG(*plugin.mask); - if (DEVICE(cpu)->realized) { - async_run_on_cpu(cpu, plugin_cpu_update__async, mask); - } else { - plugin_cpu_update__async(cpu, mask); - } + async_run_on_cpu(cpu, plugin_cpu_update__async, mask); } void plugin_unregister_cb__locked(struct qemu_plugin_ctx *ctx,