VFIO: platform: add reset callback
authorEric Auger <eric.auger@linaro.org>
Mon, 15 Jun 2015 09:09:43 +0000 (11:09 +0200)
committerAlex Williamson <alex.williamson@redhat.com>
Mon, 22 Jun 2015 15:35:22 +0000 (09:35 -0600)
commit813ae66008aeb97a48f20efefeb962179b642dbe
treeabc7911b21ac87c15f8614d5618e680456b0309c
parent9f85d8f9fa342b22f01b8b4416c850bac00c2b4a
VFIO: platform: add reset callback

A new reset callback is introduced. If this callback is populated,
the reset is invoked on device first open/last close or upon userspace
ioctl.  The modality is exposed on VFIO_DEVICE_GET_INFO.

Signed-off-by: Eric Auger <eric.auger@linaro.org>
Acked-by: Baptiste Reynal <b.reynal@virtualopensystems.com>
Tested-by: Baptiste Reynal <b.reynal@virtualopensystems.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/platform/vfio_platform_common.c
drivers/vfio/platform/vfio_platform_private.h