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]>

diff --git a/qemu/qemu-kvm.c b/qemu/qemu-kvm.c
--- a/qemu/qemu-kvm.c
+++ b/qemu/qemu-kvm.c
@@ -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;
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to