summaryrefslogtreecommitdiffstats
path: root/include/hw/pci
diff options
context:
space:
mode:
authorPeter Xu2016-07-14 07:56:32 +0200
committerMichael S. Tsirkin2016-07-21 19:44:19 +0200
commite1d4fb2de594ab0cbe78846bc79617b9bd50c867 (patch)
tree3369f93474f9b692104f7b84cf957dab44472dcc /include/hw/pci
parentkvm-irqchip: i386: add hook for add/remove virq (diff)
downloadqemu-e1d4fb2de594ab0cbe78846bc79617b9bd50c867.tar.gz
qemu-e1d4fb2de594ab0cbe78846bc79617b9bd50c867.tar.xz
qemu-e1d4fb2de594ab0cbe78846bc79617b9bd50c867.zip
kvm-irqchip: x86: add msi route notify fn
One more IEC notifier is added to let msi routes know about the IEC changes. When interrupt invalidation happens, all registered msi routes will be updated for all PCI devices. Since both vfio and vhost are possible gsi route consumers, this patch will go one step further to keep them safe in split irqchip mode and when irqfd is enabled. Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> [move trace-events lines into target-i386/trace-events] Signed-off-by: Peter Xu <peterx@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include/hw/pci')
-rw-r--r--include/hw/pci/pci.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hw/pci/pci.h b/include/hw/pci/pci.h
index 9ed1624f09..74d797d1cf 100644
--- a/include/hw/pci/pci.h
+++ b/include/hw/pci/pci.h
@@ -805,4 +805,6 @@ extern const VMStateDescription vmstate_pci_device;
.offset = vmstate_offset_pointer(_state, _field, PCIDevice), \
}
+MSIMessage pci_get_msi_message(PCIDevice *dev, int vector);
+
#endif