vfio: Introduce vfio_set_irqs_validate_and_prepare()
authorKirti Wankhede <kwankhede@nvidia.com>
Wed, 16 Nov 2016 20:46:27 +0000 (02:16 +0530)
committerAlex Williamson <alex.williamson@redhat.com>
Thu, 17 Nov 2016 15:33:20 +0000 (08:33 -0700)
commitc747f08aea847c8c0704acf9375ca83c4800f6c1
treee5b811277ddd8b6faf1370ccb32a9af402b32819
parentc535d34569bbc61ebf25a5505ab9eafba057345f
vfio: Introduce vfio_set_irqs_validate_and_prepare()

Vendor driver using mediated device framework would use same mechnism to
validate and prepare IRQs. Introducing this function to reduce code
replication in multiple drivers.

Signed-off-by: Kirti Wankhede <kwankhede@nvidia.com>
Signed-off-by: Neo Jia <cjia@nvidia.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/vfio.c
include/linux/vfio.h