public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kvm-userspace: fix kvm initialization
@ 2008-11-10 12:59 Ehrhardt Christian
  2008-11-10 14:02 ` Avi Kivity
  0 siblings, 1 reply; 4+ messages in thread
From: Ehrhardt Christian @ 2008-11-10 12:59 UTC (permalink / raw)
  To: kvm, avi; +Cc: ehrhardt, hollisb

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.

This should be true for target-ia64/op_helper.c too.

Signed-off-by: Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com>
---

[diffstat]
 helper.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

[diff]

diff --git a/qemu/target-ppc/helper.c b/qemu/target-ppc/helper.c
--- a/qemu/target-ppc/helper.c
+++ b/qemu/target-ppc/helper.c
@@ -2959,10 +2959,8 @@
     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;
 }
 

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-11-10 14:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-10 12:59 [PATCH] kvm-userspace: fix kvm initialization Ehrhardt Christian
2008-11-10 14:02 ` Avi Kivity
2008-11-10 14:25   ` Zhang, Xiantao
2008-11-10 14:51     ` Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox