summary refs log tree commit diff stats
path: root/hw/i386/kvm/pci-assign.c
diff options
context:
space:
mode:
authorPeter Xu <peterx@redhat.com>2016-07-14 13:56:27 +0800
committerMichael S. Tsirkin <mst@redhat.com>2016-07-21 20:43:49 +0300
commite3d9c92507df61608896a579b5b0d7c218d5353e (patch)
tree37f29b66021982aa44ee0b0ce8da96571b58e999 /hw/i386/kvm/pci-assign.c
parent02a2cbc872df99205eeafd399f01c210e0b797c4 (diff)
downloadfocaccia-qemu-e3d9c92507df61608896a579b5b0d7c218d5353e.tar.gz
focaccia-qemu-e3d9c92507df61608896a579b5b0d7c218d5353e.zip
ioapic: register IOMMU IEC notifier for ioapic
Let IOAPIC the first consumer of x86 IOMMU IEC invalidation
notifiers. This is only used for split irqchip case, when vIOMMU
receives IR invalidation requests, IOAPIC will be notified to update
kernel irq routes. For simplicity, we just update all IOAPIC routes,
even if the invalidated entries are not IOAPIC ones.

Since now we are creating IOMMUs using "-device" parameter, IOMMU
device will be created after IOAPIC.  We need to do the registration
after machine done by leveraging machine_done notifier.

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 'hw/i386/kvm/pci-assign.c')
0 files changed, 0 insertions, 0 deletions