Fix breakpoints coming into KVM that are corrupted from qemu
PATCH 1/1 Fix breakpoints coming into KVM that are corrupted from qemu
1 file changed, 2 insertions(+)
qemu/qemu-kvm.c | 2 ++
Bad breakpoints are being passed down to KVM due to the fact that breakpoint structure in the kvm_debug_guest structure are not being initialized. This fixes this.
This fix can also be found in the RFC patches that Jan Kiszka has sent for adding soft breakpoints.
Signed-off-by Jerone Young <[email protected]>
qemu/qemu-kvm.c +2 -0
@@ -704,6 +704,8 @@ int kvm_update_debugger(CPUState *env)struct kvm_debug_guest dbg;int i; +memset (dbg.breakpoints,0 ,sizeof (dbg.breakpoints)); + dbg.enabled =0 ;if (env->nb_breakpoints || env->singlestep_enabled) { dbg.enabled =1 ;
Avi Kivity
AppliedQuoted 5 lines · Jerone Young
Bad breakpoints are being passed down to KVM due to the fact that breakpoint structure in the
kvm_debug_gueststructure are not being initialized. This fixes this.This fix can also be found in the RFC patches that Jan Kiszka has sent for adding soft breakpoints.
Applied, thanks.
Signature · 1 line
error compiling committee.c: too many arguments to function