diff options
author | Marcel Apfelbaum <marcel.a@redhat.com> | 2013-10-07 10:36:40 +0300 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2013-10-14 17:11:45 +0300 |
commit | 5a03e708f213c716c9dde11e8ab4b23b8ca5c066 (patch) | |
tree | 0ffce44d049bd8ba1dcd05f6cf06b6e49d3e9c61 /hw/pci/pcie.c | |
parent | 9e64f8a3fcc88a508990a62ecc5a1269e41272ad (diff) | |
download | qemu-5a03e708f213c716c9dde11e8ab4b23b8ca5c066.tar.gz qemu-5a03e708f213c716c9dde11e8ab4b23b8ca5c066.tar.bz2 qemu-5a03e708f213c716c9dde11e8ab4b23b8ca5c066.zip |
hw/pcie: AER and hot-plug events must use device's interrupt
The fields hpev_intx and aer_intx were removed because
both AER and hot-plug events must use device's interrupt.
Assert/deassert interrupts using pci irq wrappers instead.
Signed-off-by: Marcel Apfelbaum <marcel.a@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/pci/pcie.c')
-rw-r--r-- | hw/pci/pcie.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/pci/pcie.c b/hw/pci/pcie.c index 50af3c1dfe..268a696646 100644 --- a/hw/pci/pcie.c +++ b/hw/pci/pcie.c @@ -187,7 +187,7 @@ static void hotplug_event_notify(PCIDevice *dev) } else if (msi_enabled(dev)) { msi_notify(dev, pcie_cap_flags_get_vector(dev)); } else { - qemu_set_irq(dev->irq[dev->exp.hpev_intx], dev->exp.hpev_notified); + pci_set_irq(dev, dev->exp.hpev_notified); } } @@ -195,7 +195,7 @@ static void hotplug_event_clear(PCIDevice *dev) { hotplug_event_update_event_status(dev); if (!msix_enabled(dev) && !msi_enabled(dev) && !dev->exp.hpev_notified) { - qemu_set_irq(dev->irq[dev->exp.hpev_intx], 0); + pci_irq_deassert(dev); } } |