Revision be41cbe0
b/kvm-all.c | ||
---|---|---|
1033 | 1033 |
} |
1034 | 1034 |
|
1035 | 1035 |
#ifdef KVM_CAP_SET_GUEST_DEBUG |
1036 |
static void on_vcpu(CPUState *env, void (*func)(void *data), void *data) |
|
1037 |
{ |
|
1038 |
#ifdef CONFIG_IOTHREAD |
|
1039 |
if (env != cpu_single_env) { |
|
1040 |
abort(); |
|
1041 |
} |
|
1042 |
#endif |
|
1043 |
func(data); |
|
1044 |
} |
|
1045 |
|
|
1046 | 1036 |
struct kvm_sw_breakpoint *kvm_find_sw_breakpoint(CPUState *env, |
1047 | 1037 |
target_ulong pc) |
1048 | 1038 |
{ |
... | ... | |
1086 | 1076 |
kvm_arch_update_guest_debug(env, &data.dbg); |
1087 | 1077 |
data.env = env; |
1088 | 1078 |
|
1089 |
on_vcpu(env, kvm_invoke_set_guest_debug, &data);
|
|
1079 |
run_on_cpu(env, kvm_invoke_set_guest_debug, &data);
|
|
1090 | 1080 |
return data.err; |
1091 | 1081 |
} |
1092 | 1082 |
|
Also available in: Unified diff