Skip to content

s390/vfio-ap: Fixes for queue reset and AQIC handling

Jason J. Herne linux-s390 lkml stable 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5s390/vfio-ap: Prevent passing unreset queuesdrivers/s390/crypto/vfio_ap_ops.c+23 -40 replies
2/5s390/vfio-ap: bound the wait for queue reset verificationdrivers/s390/crypto/vfio_ap_ops.c+15 -00 replies
3/5s390/vfio-ap: Hold a private NIB page reference when a reset is unconfirmeddrivers/s390/crypto/vfio_ap_ops.c drivers/s390/crypto/vfio_ap_private.h+41 -60 replies
4/5s390/vfio-ap: clear matrix_mdev link for queues not reset on unassigndrivers/s390/crypto/vfio_ap_ops.c+30 -100 replies
5/5s390/vfio-ap: Fix resource handling for rejected AQIC enable requestsdrivers/s390/crypto/vfio_ap_ops.c+14 -70 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] s390/vfio-ap: Fixes for queue reset and AQIC handling

This is a bugfix series to address problems found during ai lead code review. Its focus is primarily reset & data security related.

Summary of changes:
- Patch 1: Prevent passing unreset, checkstopped, or deconfigured queues through to guests so we don't risk leaking sensitive leftover data.
- Patch 2: Bound the queue reset verification loop (2s timeout) to avoid infinite hangs if resets fail to complete (rare or impossible).
- Patch 3: Hold a private page reference on unconfirmed resets to satisfy VFIO DMA unmapping while preventing page reuse/corruption by hardware.
- Patch 4: Clear dangling matrix_mdev references and clean up AQIC resources for filtered queues during adapter/domain unassignment.
- Patch 5: Fix resource handling and state tracking for rejected or non-NORMAL AQIC enable requests.

Jason J. Herne (5):
s390/vfio-ap: Prevent passing unreset queues
s390/vfio-ap: bound the wait for queue reset verification s390/vfio-ap: Hold a private NIB page reference when a reset is
unconfirmed
s390/vfio-ap: clear matrix_mdev link for queues not reset on unassign s390/vfio-ap: Fix resource handling for rejected AQIC enable requests

 drivers/s390/crypto/vfio_ap_ops.c     | 140 +++++++++++++++++++++-----
 drivers/s390/crypto/vfio_ap_private.h |   2 +
 2 files changed, 119 insertions(+), 23 deletions(-)
Signature · 1 line
2.56.1