* [PATCH] Fix breakpoints coming into KVM that are corrupted from qemu
@ 2008-05-22 21:33 Jerone Young
2008-05-25 10:55 ` Avi Kivity
0 siblings, 1 reply; 2+ messages in thread
From: Jerone Young @ 2008-05-22 21:33 UTC (permalink / raw)
To: kvm
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 <jyoung5@us.ibm.com>
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;
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] Fix breakpoints coming into KVM that are corrupted from qemu
2008-05-22 21:33 [PATCH] Fix breakpoints coming into KVM that are corrupted from qemu Jerone Young
@ 2008-05-25 10:55 ` Avi Kivity
0 siblings, 0 replies; 2+ messages in thread
From: Avi Kivity @ 2008-05-25 10:55 UTC (permalink / raw)
To: Jerone Young; +Cc: kvm
Jerone Young wrote:
> 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.
>
>
Applied, thanks.
--
error compiling committee.c: too many arguments to function
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-05-25 10:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-22 21:33 [PATCH] Fix breakpoints coming into KVM that are corrupted from qemu Jerone Young
2008-05-25 10:55 ` Avi Kivity
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox