[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [RESEND][PATCH] temporary fix for on_vcpu

From: Jan Kiszka
Subject: [Qemu-devel] [RESEND][PATCH] temporary fix for on_vcpu
Date: Thu, 17 Sep 2009 20:10:06 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv: Gecko/20080226 SUSE/ Thunderbird/ Mnenhy/

From: Glauber Costa <address@hidden>

Recent changes made on_vcpu hit the abort() path, even with the IO thread
disabled. This is because cpu_single_env is no longer set when we call this
function. Although the correct fix is a little bit more complicated that that,
the recent thread in which I proposed qemu_queue_work (which fixes that, btw),
is likely to go on a quite different direction.

So for the benefit of those using guest debugging, I'm proposing this simple
fix in the interim.

Signed-off-by: Glauber Costa <address@hidden>
Signed-off-by: Jan Kiszka <address@hidden>

 kvm-all.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/kvm-all.c b/kvm-all.c
index ac57984..3c37dd7 100644
--- a/kvm-all.c
+++ b/kvm-all.c
@@ -905,11 +905,15 @@ void kvm_setup_guest_memory(void *start, size_t size)
 static void on_vcpu(CPUState *env, void (*func)(void *data), void *data)
     if (env == cpu_single_env) {
+    func(data);
 struct kvm_sw_breakpoint *kvm_find_sw_breakpoint(CPUState *env,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]