|
@@ -192,13 +192,6 @@ static void cpu_common_parse_features(const char *typename, char *features,
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-#ifdef CONFIG_PLUGIN
|
|
|
-static void qemu_plugin_vcpu_init__async(CPUState *cpu, run_on_cpu_data unused)
|
|
|
-{
|
|
|
- qemu_plugin_vcpu_init_hook(cpu);
|
|
|
-}
|
|
|
-#endif
|
|
|
-
|
|
|
static void cpu_common_realizefn(DeviceState *dev, Error **errp)
|
|
|
{
|
|
|
CPUState *cpu = CPU(dev);
|
|
@@ -274,7 +267,7 @@ static void cpu_common_initfn(Object *obj)
|
|
|
#ifdef CONFIG_PLUGIN
|
|
|
if (tcg_enabled()) {
|
|
|
cpu->plugin_state = qemu_plugin_create_vcpu_state();
|
|
|
- async_run_on_cpu(cpu, qemu_plugin_vcpu_init__async, RUN_ON_CPU_NULL);
|
|
|
+ qemu_plugin_vcpu_init_hook(cpu);
|
|
|
}
|
|
|
#endif
|
|
|
}
|