Commit 07fb8bb2 authored by Michael S. Tsirkin's avatar Michael S. Tsirkin Committed by Avi Kivity

KVM: ignore msi request if !level

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: default avatarMichael S. Tsirkin <mst@redhat.com>
Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
parent f7c6d140
...@@ -139,7 +139,9 @@ int kvm_set_irq(struct kvm *kvm, int irq_source_id, int irq, int level) ...@@ -139,7 +139,9 @@ int kvm_set_irq(struct kvm *kvm, int irq_source_id, int irq, int level)
else else
clear_bit(irq_source_id, irq_state); clear_bit(irq_source_id, irq_state);
sig_level = !!(*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; sig_level = 1;
/* Not possible to detect if the guest uses the PIC or the /* Not possible to detect if the guest uses the PIC or the
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment