projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7c6d14
)
KVM: ignore msi request if !level
author
Michael S. Tsirkin
<mst@redhat.com>
Sun, 5 Jul 2009 18:27:58 +0000
(21:27 +0300)
committer
Avi Kivity
<avi@redhat.com>
Thu, 10 Sep 2009 05:33:10 +0000
(08:33 +0300)
Irqfd sets level for interrupt to 1 and then to 0.
For MSI, check level so that a single message is sent.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
virt/kvm/irq_comm.c
patch
|
blob
|
blame
|
history
diff --git
a/virt/kvm/irq_comm.c
b/virt/kvm/irq_comm.c
index 56e696104d43026920c707977012b3037422ae8c..a9d7fd1f1d6a8e5d0a1a9074d8ca19844da42059 100644
(file)
--- a/
virt/kvm/irq_comm.c
+++ b/
virt/kvm/irq_comm.c
@@
-139,7
+139,9
@@
int kvm_set_irq(struct kvm *kvm, int irq_source_id, int irq, int level)
else
clear_bit(irq_source_id, irq_state);
sig_level = !!(*irq_state);
- } else /* Deal with MSI/MSI-X */
+ } else if (!level)
+ return ret;
+ else /* Deal with MSI/MSI-X */
sig_level = 1;
/* Not possible to detect if the guest uses the PIC or the