vfio: Include optional device match in vfio_device_ops callbacks
authorAlex Williamson <alex.williamson@redhat.com>
Tue, 24 Mar 2020 15:28:25 +0000 (09:28 -0600)
committerAlex Williamson <alex.williamson@redhat.com>
Tue, 24 Mar 2020 15:28:25 +0000 (09:28 -0600)
commit5f3874c2a2310d9bd6969ca6764961d27a843b9d
treee0795d72ed06c8c56dc0ea76243d5e5ea3884b19
parent16fbf79b0f83bc752cee8589279f1ebfe57b3b6e
vfio: Include optional device match in vfio_device_ops callbacks

Allow bus drivers to provide their own callback to match a device to
the user provided string.

Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/vfio.c
include/linux/vfio.h