Revision fc5d642f kvm-all.c

b/kvm-all.c
155 155
    }
156 156
}
157 157

  
158
static void on_vcpu(CPUState *env, void (*func)(void *data), void *data)
159
{
160
    if (env == cpu_single_env) {
161
        func(data);
162
        return;
163
    }
164
    abort();
165
}
166

  
167 158
int kvm_irqchip_in_kernel(void)
168 159
{
169 160
    return kvm_state->irqchip_in_kernel;
......
909 900
}
910 901

  
911 902
#ifdef KVM_CAP_SET_GUEST_DEBUG
903
static void on_vcpu(CPUState *env, void (*func)(void *data), void *data)
904
{
905
    if (env == cpu_single_env) {
906
        func(data);
907
        return;
908
    }
909
    abort();
910
}
911

  
912 912
struct kvm_sw_breakpoint *kvm_find_sw_breakpoint(CPUState *env,
913 913
                                                 target_ulong pc)
914 914
{

Also available in: Unified diff