The required kernel changes associated with the patch are here:

https://lore.kernel.org/linux-s390/20230530223538.279198-1-akrow...@linux.ibm.com/

On 5/30/23 6:55 PM, Tony Krowiak wrote:
When a user attempts to remove a vfio-ap mediated device attached to a
guest, the operation hangs until the mdev's fd is closed by the guest
(i.e., the guest is shut down). This patch series provides userspace
(i.e., qemu) code to handle device unplug requests for AP. When notified
that the mdev is being removed, the handler will unplug the device, thus
avoiding the hang condition.

Tony Krowiak (2):
   linux-headers: Update with vfio_ap IRQ index mapping
   s390x/ap: Wire up the device request notifier interface

  hw/vfio/ap.c               | 113 +++++++++++++++++++++++++++++++++++++
  linux-headers/linux/vfio.h |   9 +++
  2 files changed, 122 insertions(+)


Reply via email to