aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@web.de>2008-12-05 20:20:38 +0100
committerAvi Kivity <avi@redhat.com>2008-12-07 12:12:19 +0200
commit506bcffcac7a6366fcdc1cb3241825937b774f6c (patch)
tree3768005676813732994080a4496218cf9871a942
parent8ae52b000f14d2646238b3544178bdb7d5dd84f3 (diff)
Fix -no-kvm-irqchipkvm-80
Commit fc94d163d1e3424199166cf50449e03447400579 broke -no-kvm-irqchip. This fixes the issue by restoring the logic of kvm_update_interrupt_request /wrt IRQ injection from the IO thread. Signed-off-by: Jan Kiszka <jan.kiszka@web.de> Signed-off-by: Avi Kivity <avi@redhat.com>
-rw-r--r--qemu-kvm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/qemu-kvm.c b/qemu-kvm.c
index a7cfa24bd..9ca8da462 100644
--- a/qemu-kvm.c
+++ b/qemu-kvm.c
@@ -117,7 +117,7 @@ void kvm_update_interrupt_request(CPUState *env)
int signal = 0;
if (env) {
- if (current_env && !current_env->kvm_cpu_state.created)
+ if (!current_env || !current_env->kvm_cpu_state.created)
signal = 1;
/*
* Testing for created here is really redundant