aboutsummaryrefslogtreecommitdiffstats
path: root/hw/msix.c
diff options
context:
space:
mode:
authorIsaku Yamahata <yamahata@valinux.co.jp>2010-09-15 14:38:26 +0900
committerMichael S. Tsirkin <mst@redhat.com>2010-09-20 20:15:19 +0200
commit57c6db2e2dec77a60bcfe6f93d756653f444a1f2 (patch)
tree4c23b9d20eb44ac36093f987a869c85e580a840e /hw/msix.c
parent92ba5f51c305911cbfc0fcff9f259b0604681222 (diff)
msix: clear not only INTA, but all INTx when MSI-X is enabled.
clear not only INTA, but all INTx when MSI-X is enabled. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/msix.c')
-rw-r--r--hw/msix.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/hw/msix.c b/hw/msix.c
index 7ce63ebe6..b202ff7d8 100644
--- a/hw/msix.c
+++ b/hw/msix.c
@@ -158,6 +158,7 @@ void msix_write_config(PCIDevice *dev, uint32_t addr,
{
unsigned enable_pos = dev->msix_cap + MSIX_CONTROL_OFFSET;
int vector;
+ int i;
if (!range_covers_byte(addr, len, enable_pos)) {
return;
@@ -167,7 +168,9 @@ void msix_write_config(PCIDevice *dev, uint32_t addr,
return;
}
- qemu_set_irq(dev->irq[0], 0);
+ for (i = 0; i < PCI_NUM_PINS; ++i) {
+ qemu_set_irq(dev->irq[i], 0);
+ }
if (msix_function_masked(dev)) {
return;