From 0e331ff4f6ac6c334a9911f520cd74b45165fd94 Mon Sep 17 00:00:00 2001 From: Ehrhardt Christian Date: Mon, 10 Nov 2008 13:59:35 +0100 Subject: [PATCH] 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 --- target-ppc/helper.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/target-ppc/helper.c b/target-ppc/helper.c index e16c8d3f1f..1413480917 100644 --- a/target-ppc/helper.c +++ b/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