From 0f39143cb5f10c10f00836b3e2a97c02ffb30e52 Mon Sep 17 00:00:00 2001 From: Ehrhardt Christian Date: Mon, 10 Nov 2008 13:59:35 +0100 Subject: [PATCH] kvm: qemu: fix kvm ppc vcpu initialization A recent patch in qemu and its merge removed the availability of kvm_init_new_ap in target-$arch. The helper files now should call kvm_init_vcpu() directly. This patch changes that for powerpc. Signed-off-by: Christian Ehrhardt Signed-off-by: Avi Kivity --- qemu/target-ppc/helper.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/qemu/target-ppc/helper.c b/qemu/target-ppc/helper.c index e16c8d3f..14134809 100644 --- a/qemu/target-ppc/helper.c +++ b/qemu/target-ppc/helper.c @@ -2959,10 +2959,8 @@ CPUPPCState *cpu_ppc_init (const char *cpu_model) env->cpu_model_str = cpu_model; cpu_ppc_register_internal(env, def); cpu_ppc_reset(env); -#ifdef USE_KVM if (kvm_enabled()) - kvm_init_new_ap(env->cpu_index, env); -#endif + kvm_init_vcpu(env); return env; } -- 2.11.4.GIT