Revision 1d5791f4

b/gdbstub.c
2019 2019
    CPUArchState *env;
2020 2020

  
2021 2021
    if (kvm_enabled()) {
2022
        kvm_remove_all_breakpoints(gdbserver_state->c_cpu);
2022
        kvm_remove_all_breakpoints(ENV_GET_CPU(gdbserver_state->c_cpu));
2023 2023
        return;
2024 2024
    }
2025 2025

  
b/include/sysemu/kvm.h
173 173
                          target_ulong len, int type);
174 174
int kvm_remove_breakpoint(CPUArchState *env, target_ulong addr,
175 175
                          target_ulong len, int type);
176
void kvm_remove_all_breakpoints(CPUArchState *env);
176
void kvm_remove_all_breakpoints(CPUState *cpu);
177 177
int kvm_update_guest_debug(CPUArchState *env, unsigned long reinject_trap);
178 178
#ifndef _WIN32
179 179
int kvm_set_signal_mask(CPUState *cpu, const sigset_t *sigset);
b/kvm-all.c
1988 1988
    return 0;
1989 1989
}
1990 1990

  
1991
void kvm_remove_all_breakpoints(CPUArchState *env)
1991
void kvm_remove_all_breakpoints(CPUState *cpu)
1992 1992
{
1993
    CPUState *cpu = ENV_GET_CPU(env);
1994 1993
    struct kvm_sw_breakpoint *bp, *next;
1995 1994
    KVMState *s = cpu->kvm_state;
1995
    CPUArchState *env;
1996 1996

  
1997 1997
    QTAILQ_FOREACH_SAFE(bp, &s->kvm_sw_breakpoints, entry, next) {
1998 1998
        if (kvm_arch_remove_sw_breakpoint(cpu, bp) != 0) {
......
2033 2033
    return -EINVAL;
2034 2034
}
2035 2035

  
2036
void kvm_remove_all_breakpoints(CPUArchState *env)
2036
void kvm_remove_all_breakpoints(CPUState *cpu)
2037 2037
{
2038 2038
}
2039 2039
#endif /* !KVM_CAP_SET_GUEST_DEBUG */
b/kvm-stub.c
95 95
    return -EINVAL;
96 96
}
97 97

  
98
void kvm_remove_all_breakpoints(CPUArchState *env)
98
void kvm_remove_all_breakpoints(CPUState *cpu)
99 99
{
100 100
}
101 101

  

Also available in: Unified diff