* [PATCH] kvm-userspace: Fix -no-kvm-irqchip
@ 2008-12-05 19:20 Jan Kiszka
2008-12-07 10:14 ` Avi Kivity
0 siblings, 1 reply; 2+ messages in thread
From: Jan Kiszka @ 2008-12-05 19:20 UTC (permalink / raw)
To: kvm-devel; +Cc: Avi Kivity, Jes Sorensen
[-- Attachment #1: Type: text/plain, Size: 884 bytes --]
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.
[However, I did not yet get the need for all the additional tests in
that function.]
Signed-off-by: Jan Kiszka <jan.kiszka@web.de>
---
qemu/qemu-kvm.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/qemu/qemu-kvm.c b/qemu/qemu-kvm.c
index a7cfa24..9ca8da4 100644
--- a/qemu/qemu-kvm.c
+++ b/qemu/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
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 257 bytes --]
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] kvm-userspace: Fix -no-kvm-irqchip
2008-12-05 19:20 [PATCH] kvm-userspace: Fix -no-kvm-irqchip Jan Kiszka
@ 2008-12-07 10:14 ` Avi Kivity
0 siblings, 0 replies; 2+ messages in thread
From: Avi Kivity @ 2008-12-07 10:14 UTC (permalink / raw)
To: Jan Kiszka; +Cc: kvm-devel, Jes Sorensen
Jan Kiszka wrote:
> 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.
>
>
Applied, thanks.
> [However, I did not yet get the need for all the additional tests in
> that function.]
>
Neither does the comment in that function...
--
error compiling committee.c: too many arguments to function
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-12-07 10:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-05 19:20 [PATCH] kvm-userspace: Fix -no-kvm-irqchip Jan Kiszka
2008-12-07 10:14 ` Avi Kivity
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).