s390/vfio-ap: wire in the vfio_device_ops request callback
authorTony Krowiak <akrowiak@linux.ibm.com>
Tue, 30 May 2023 22:35:38 +0000 (18:35 -0400)
committerAlexander Gordeev <agordeev@linux.ibm.com>
Tue, 6 Jun 2023 11:42:07 +0000 (13:42 +0200)
commit2e3d8d71e285fcf39eb30dbb17a58baa90649867
tree9544c5ffae6238a511a93139b7f754a5e8db0152
parentbf48961f6f48e3b7eb80c3e179207e9f4e4cd660
s390/vfio-ap: wire in the vfio_device_ops request callback

The mdev device is being removed, so pass the request to userspace to
ask for a graceful cleanup. This should free up the thread that
would otherwise loop waiting for the device to be fully released.

Signed-off-by: Tony Krowiak <akrowiak@linux.ibm.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Reviewed-by: Matthew Rosato <mjrosato@linux.ibm.com>
Tested-by: Matthew Rosato <mjrosato@linux.ibm.com>
Acked-by: Alex Williamson <alex.williamson@redhat.com>
Link: https://lore.kernel.org/r/20230530223538.279198-4-akrowiak@linux.ibm.com
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
drivers/s390/crypto/vfio_ap_ops.c