Message ID | 20091215123327.GD8031@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/qemu-kvm.c b/qemu-kvm.c index 44e8b75..fa6db8e 100644 --- a/qemu-kvm.c +++ b/qemu-kvm.c @@ -1920,12 +1920,12 @@ static void *ap_main_loop(void *_env) pthread_mutex_lock(&qemu_mutex); cpu_single_env = env; + current_env->created = 1; kvm_arch_init_vcpu(env); kvm_arch_load_regs(env); /* signal VCPU creation */ - current_env->created = 1; pthread_cond_signal(&qemu_vcpu_cond); /* and wait for machine initialization */