diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2019-10-17 12:38:30 +1100 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2019-11-26 10:11:30 +1100 |
commit | c5478fea27ac47ed3b57e0489a49b62f36024763 (patch) | |
tree | fcce0f7582bd235baba9a333454502c029bb1e41 /ui | |
parent | ad54dbd89d7142c00669f8b6f4806c92ab468b45 (diff) | |
download | qemu-c5478fea27ac47ed3b57e0489a49b62f36024763.zip qemu-c5478fea27ac47ed3b57e0489a49b62f36024763.tar.gz qemu-c5478fea27ac47ed3b57e0489a49b62f36024763.tar.bz2 |
vfio/pci: Respond to KVM irqchip change notifier
VFIO PCI devices already respond to the pci intx routing notifier, in order
to update kernel irqchip mappings when routing is updated. However this
won't handle the case where the irqchip itself is replaced by a different
model while retaining the same routing. This case can happen on
the pseries machine type due to PAPR feature negotiation.
To handle that case, add a handler for the irqchip change notifier, which
does much the same thing as the routing notifier, but is unconditional,
rather than being a no-op when the routing hasn't changed.
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>
Diffstat (limited to 'ui')
0 files changed, 0 insertions, 0 deletions