vfio/pci: Use kvm_irqchip_add_irqfd_notifier_gsi() for irqfds
commit97a3757616ca27840c7ce1d088d8f1d2e5753738
authorPeter Xu <peterx@redhat.com>
Wed, 18 Mar 2020 14:52:01 +0000 (18 10:52 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 10 Jun 2020 16:10:28 +0000 (10 12:10 -0400)
tree2da8b8f8af05369dfa2a5e283e94b1196bc1cd03
parent353f98c9ad52ff4b8cfe553c90be04f747a14c98
vfio/pci: Use kvm_irqchip_add_irqfd_notifier_gsi() for irqfds

VFIO is currently the only one left that is not using the generic
function (kvm_irqchip_add_irqfd_notifier_gsi()) to register irqfds.
Let VFIO use the common framework too.

Follow up patches will introduce extra features for kvm irqfd, so that
VFIO can easily leverage that after the switch.

Reviewed-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Reviewed-by: Alex Williamson <alex.williamson@redhat.com>
Acked-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Message-Id: <20200318145204.74483-3-peterx@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/vfio/pci.c