static void kvm_start_vcpu(CPUState *env)

{

    env->thread = qemu_mallocz(sizeof(QemuThread));

    env->halt_cond = qemu_mallocz(sizeof(QemuCond));

    qemu_cond_init(env->halt_cond);

    qemu_thread_create(env->thread, kvm_cpu_thread_fn, env);

    while (env->created == 0)

        qemu_cond_timedwait(&qemu_cpu_cond, &qemu_global_mutex, 100);

}

static void kvm_start_vcpu(CPUState *env)

{

    env->thread = qemu_mallocz(sizeof(QemuThread));

    env->halt_cond = qemu_mallocz(sizeof(QemuCond));

    qemu_cond_init(env->halt_cond);

    qemu_thread_create(env->thread, kvm_cpu_thread_fn, env);

    while (env->created == 0)

        qemu_cond_timedwait(&qemu_cpu_cond, &qemu_global_mutex, 100);

}

static void FUNC_0(CPUState *VAR_0)

{

    VAR_0->thread = qemu_mallocz(sizeof(QemuThread));

    VAR_0->halt_cond = qemu_mallocz(sizeof(QemuCond));

    qemu_cond_init(VAR_0->halt_cond);

    qemu_thread_create(VAR_0->thread, kvm_cpu_thread_fn, VAR_0);

    while (VAR_0->created == 0)

        qemu_cond_timedwait(&qemu_cpu_cond, &qemu_global_mutex, 100);

}

static void FUNC_0(CPUState *VAR_0)
{ VAR_0->thread = qemu_mallocz(sizeof(QemuThread)); VAR_0->halt_cond = qemu_mallocz(sizeof(QemuCond)); qemu_cond_init(VAR_0->halt_cond); qemu_thread_create(VAR_0->thread, kvm_cpu_thread_fn, VAR_0); while (VAR_0->created == 0)
qemu_cond_timedwait(&qemu_cpu_cond, &qemu_global_mutex, 100); }