]> git.proxmox.com Git - mirror_qemu.git/commit - target/i386/kvm.c
kvm-irqchip: x86: add msi route notify fn
authorPeter Xu <peterx@redhat.com>
Thu, 14 Jul 2016 05:56:32 +0000 (13:56 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 21 Jul 2016 17:44:19 +0000 (20:44 +0300)
commite1d4fb2de594ab0cbe78846bc79617b9bd50c867
tree3369f93474f9b692104f7b84cf957dab44472dcc
parent38d87493f37e5dc442c7419c5843fcf60bb39d63
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>
hw/pci/pci.c
include/hw/pci/pci.h
kvm-all.c
target-i386/kvm.c
target-i386/trace-events