From 506bcffcac7a6366fcdc1cb3241825937b774f6c Mon Sep 17 00:00:00 2001 From: Jan Kiszka Date: Fri, 5 Dec 2008 20:20:38 +0100 Subject: Fix -no-kvm-irqchip 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 Signed-off-by: Avi Kivity --- qemu-kvm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3