[PATCH v2 0/2] s390x/ap: fix hang when mdev attached to guest is removed

Tony Krowiak posted 2 patches 10 months, 4 weeks ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20230602141125.448833-1-akrowiak@linux.ibm.com
Maintainers: Alex Williamson <alex.williamson@redhat.com>, "Cédric Le Goater" <clg@redhat.com>, Thomas Huth <thuth@redhat.com>, Tony Krowiak <akrowiak@linux.ibm.com>, Halil Pasic <pasic@linux.ibm.com>, Jason Herne <jjherne@linux.ibm.com>, "Michael S. Tsirkin" <mst@redhat.com>, Cornelia Huck <cohuck@redhat.com>, Paolo Bonzini <pbonzini@redhat.com>
hw/vfio/ap.c                                  | 113 ++++++++++++++++++
include/standard-headers/linux/const.h        |   2 +-
include/standard-headers/linux/virtio_blk.h   |  18 +--
.../standard-headers/linux/virtio_config.h    |   6 +
include/standard-headers/linux/virtio_net.h   |   1 +
linux-headers/asm-arm64/kvm.h                 |  33 +++++
linux-headers/asm-riscv/kvm.h                 |  53 +++++++-
linux-headers/asm-riscv/unistd.h              |   9 ++
linux-headers/asm-s390/unistd_32.h            |   1 +
linux-headers/asm-s390/unistd_64.h            |   1 +
linux-headers/asm-x86/kvm.h                   |   3 +
linux-headers/linux/const.h                   |   2 +-
linux-headers/linux/kvm.h                     |  12 +-
linux-headers/linux/psp-sev.h                 |   7 ++
linux-headers/linux/userfaultfd.h             |  17 ++-
linux-headers/linux/vfio.h                    |   9 ++
16 files changed, 271 insertions(+), 16 deletions(-)
[PATCH v2 0/2] s390x/ap: fix hang when mdev attached to guest is removed
Posted by Tony Krowiak 10 months, 4 weeks ago
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.

Link: https://lore.kernel.org/r/20230530223538.279198-4-akrowiak@linux.ibm.com

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 ++++++++++++++++++
 include/standard-headers/linux/const.h        |   2 +-
 include/standard-headers/linux/virtio_blk.h   |  18 +--
 .../standard-headers/linux/virtio_config.h    |   6 +
 include/standard-headers/linux/virtio_net.h   |   1 +
 linux-headers/asm-arm64/kvm.h                 |  33 +++++
 linux-headers/asm-riscv/kvm.h                 |  53 +++++++-
 linux-headers/asm-riscv/unistd.h              |   9 ++
 linux-headers/asm-s390/unistd_32.h            |   1 +
 linux-headers/asm-s390/unistd_64.h            |   1 +
 linux-headers/asm-x86/kvm.h                   |   3 +
 linux-headers/linux/const.h                   |   2 +-
 linux-headers/linux/kvm.h                     |  12 +-
 linux-headers/linux/psp-sev.h                 |   7 ++
 linux-headers/linux/userfaultfd.h             |  17 ++-
 linux-headers/linux/vfio.h                    |   9 ++
 16 files changed, 271 insertions(+), 16 deletions(-)

-- 
2.31.1