Revision 6164e6d6 cpus.c

b/cpus.c
401 401
{
402 402
    CPUState *env = arg;
403 403

  
404
    qemu_mutex_lock(&qemu_global_mutex);
404 405
    qemu_thread_self(env->thread);
405 406
    if (kvm_enabled())
406 407
        kvm_init_vcpu(env);
......
408 409
    kvm_block_io_signals(env);
409 410

  
410 411
    /* signal CPU creation */
411
    qemu_mutex_lock(&qemu_global_mutex);
412 412
    env->created = 1;
413 413
    qemu_cond_signal(&qemu_cpu_cond);
414 414

  

Also available in: Unified diff