void kvm_remove_all_breakpoints(CPUState *current_env)

{

    struct kvm_sw_breakpoint *bp, *next;

    KVMState *s = current_env->kvm_state;

    CPUState *env;



    QTAILQ_FOREACH_SAFE(bp, &s->kvm_sw_breakpoints, entry, next) {

        if (kvm_arch_remove_sw_breakpoint(current_env, bp) != 0) {

            /* Try harder to find a CPU that currently sees the breakpoint. */

            for (env = first_cpu; env != NULL; env = env->next_cpu) {

                if (kvm_arch_remove_sw_breakpoint(env, bp) == 0)

                    break;

            }

        }

    }

    kvm_arch_remove_all_hw_breakpoints();



    for (env = first_cpu; env != NULL; env = env->next_cpu)

        kvm_update_guest_debug(env, 0);

}

void kvm_remove_all_breakpoints(CPUState *current_env)

{

    struct kvm_sw_breakpoint *bp, *next;

    KVMState *s = current_env->kvm_state;

    CPUState *env;



    QTAILQ_FOREACH_SAFE(bp, &s->kvm_sw_breakpoints, entry, next) {

        if (kvm_arch_remove_sw_breakpoint(current_env, bp) != 0) {

            

            for (env = first_cpu; env != NULL; env = env->next_cpu) {

                if (kvm_arch_remove_sw_breakpoint(env, bp) == 0)

                    break;

            }

        }

    }

    kvm_arch_remove_all_hw_breakpoints();



    for (env = first_cpu; env != NULL; env = env->next_cpu)

        kvm_update_guest_debug(env, 0);

}

void FUNC_0(CPUState *VAR_0)

{

    struct kvm_sw_breakpoint *VAR_1, *VAR_2;

    KVMState *s = VAR_0->kvm_state;

    CPUState *env;



    QTAILQ_FOREACH_SAFE(VAR_1, &s->kvm_sw_breakpoints, entry, VAR_2) {

        if (kvm_arch_remove_sw_breakpoint(VAR_0, VAR_1) != 0) {

            

            for (env = first_cpu; env != NULL; env = env->next_cpu) {

                if (kvm_arch_remove_sw_breakpoint(env, VAR_1) == 0)

                    break;

            }

        }

    }

    kvm_arch_remove_all_hw_breakpoints();



    for (env = first_cpu; env != NULL; env = env->next_cpu)

        kvm_update_guest_debug(env, 0);

}

void FUNC_0(CPUState *VAR_0)
{ struct kvm_sw_breakpoint *VAR_1, *VAR_2; KVMState *s = VAR_0->kvm_state; CPUState *env; QTAILQ_FOREACH_SAFE(VAR_1, &s->kvm_sw_breakpoints, entry, VAR_2) { if (kvm_arch_remove_sw_breakpoint(VAR_0, VAR_1) != 0) { for (env = first_cpu; env != NULL; env = env->next_cpu) { if (kvm_arch_remove_sw_breakpoint(env, VAR_1) == 0)
break; } } } kvm_arch_remove_all_hw_breakpoints(); for (env = first_cpu; env != NULL; env = env->next_cpu) kvm_update_guest_debug(env, 0); }