qemu-e2k/accel/stubs
David Gibson 3607715a30 kvm: Introduce KVM irqchip change notifier
Awareness of an in kernel irqchip is usually local to the machine and its
top-level interrupt controller.  However, in a few cases other things need
to know about it.  In particular vfio devices need this in order to
accelerate interrupt delivery.

If interrupt routing is changed, such devices may need to readjust their
connection to the KVM irqchip.  pci_bus_fire_intx_routing_notifier() exists
to do just this.

However, for the pseries machine type we have a situation where the routing
remains constant but the top-level irq chip itself is changed.  This occurs
because of PAPR feature negotiation which allows the guest to decide
between the older XICS and newer XIVE irq chip models (both of which are
paravirtualized).

To allow devices like vfio to adjust to this change, introduce a new
notifier for the purpose kvm_irqchip_change_notify().

Cc: Alex Williamson <alex.williamson@redhat.com>
Cc: Alexey Kardashevskiy <aik@ozlabs.ru>

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Tested-by: Alex Williamson <alex.williamson@redhat.com>
Reviewed-by: Alex Williamson <alex.williamson@redhat.com>
Reviewed-by: Greg Kurz <groug@kaod.org>
Acked-by: Alex Williamson <alex.williamson@redhat.com>
2019-11-26 10:11:30 +11:00
..
Makefile.objs Add the WHPX vcpu API 2018-02-07 14:09:26 +01:00
hax-stub.c Include qemu-common.h exactly where needed 2019-06-12 13:20:20 +02:00
hvf-stub.c Include qemu-common.h exactly where needed 2019-06-12 13:20:20 +02:00
kvm-stub.c kvm: Introduce KVM irqchip change notifier 2019-11-26 10:11:30 +11:00
tcg-stub.c accel/stubs: reduce headers from tcg-stub 2019-10-28 15:12:38 +00:00
whpx-stub.c Include qemu-common.h exactly where needed 2019-06-12 13:20:20 +02:00