Skip to content

s390/vfio-ap: refactor mdev remove callback and locks

Tony Krowiak linux-s390 lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3s390/vfio-ap: clean up mdev resources when remove callback invokeddrivers/s390/crypto/vfio_ap_ops.c+0 -103 replies
2/3s390/vfio-ap: introduce two new r/w locks to replace wait_queue_head_tdrivers/s390/crypto/vfio_ap_ops.c drivers/s390/crypto/vfio_ap_private.h+148 -2163 replies
3/3s390/vfio-ap: r/w lock for PQAP interception handler function pointerarch/s390/include/asm/kvm_host.h arch/s390/kvm/kvm-s390.c arch/s390/kvm/priv.c +2 more+18 -114 replies

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

PatchJason Gunthorpe
1/3R-b
2/3
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] s390/vfio-ap: refactor mdev remove callback and locks

This series is an expansion of a previous patch series entitled 's390/vfio-ap: fix memory leak in mdev remove callback'. It has been renamed because there never really was a memory leak to fix. In addition, reviews of the previous series gave rise to additional changes to the locking mechanisms used to control access to various data elements managed by the vfio_ap device driver.

This patch series:

1. Refactors the mdev remove callback to always clean up mdev resources
2. Adds two semaphores to replace wait queue during KVM pointer set/unset
3. Adds a semaphore to control r/w access to PQAP instruction interception handler.

Tony Krowiak (3):
s390/vfio-ap: clean up mdev resources when remove callback invoked s390/vfio-ap: introduce two new r/w locks to replace wait_queue_head_t s390/vfio-ap: r/w lock for PQAP interception handler function pointer

 arch/s390/include/asm/kvm_host.h      |   6 +-
 arch/s390/kvm/kvm-s390.c              |   1 +
 arch/s390/kvm/priv.c                  |   6 +-
 drivers/s390/crypto/vfio_ap_ops.c     | 374 ++++++++++----------------
 drivers/s390/crypto/vfio_ap_private.h |  10 +-
 5 files changed, 163 insertions(+), 234 deletions(-)
Signature · 1 line
2.30.2