Skip to content

s390/vfio-ap: reset queues removed from guest's AP configuration

Tony Krowiak kvm linux-s390 lkml stable 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest6 patches 10 repliesIn review
  2. v36 patches 1 replySuperseded
  3. v26 patches 6 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v16 patches0 repliesSuperseded

Changelog v1=> v2 from the cover letter

-----------------
* Fixed CHECKPATCH errors

* Added line between description and Acked-by in patch 5/6

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6s390/vfio-ap: always filter entire AP matrixdrivers/s390/crypto/vfio_ap_ops.c+17 -400 replies
2/6s390/vfio-ap: loop over the shadow APCB when filtering guest's AP configurationdrivers/s390/crypto/vfio_ap_ops.c+3 -20 replies
3/6s390/vfio-ap: let 'on_scan_complete' callback filter matrix and update guest's APCBdrivers/s390/crypto/vfio_ap_ops.c+13 -04 replies
4/6s390/vfio-ap: reset queues filtered from the guest's AP configdrivers/s390/crypto/vfio_ap_ops.c drivers/s390/crypto/vfio_ap_private.h+133 -495 replies
5/6s390/vfio-ap: reset queues associated with adapter for queue unbound from driverdrivers/s390/crypto/vfio_ap_ops.c+41 -350 replies
6/6s390/vfio-ap: do not reset queue removed from host configdrivers/s390/crypto/vfio_ap_ops.c+12 -40 replies

Reviews trailers per patch

All 6 patches have a Reviewed-by or Acked-by.

PatchHalil PasicJason J. Herne
1/6A-b
2/6R-b
3/6R-b
4/6A-b
5/6A-b
6/6R-b R-b

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

Read the v4 thread

Cover letter [PATCH v4 0/6] s390/vfio-ap: reset queues removed from guest's AP configuration

All queues removed from a guest's AP configuration must be reset so when they are subsequently made available again to a guest, they re-appear in a reset state. There are some scenarios where this is not the case. For example, if a queue device that is passed through to a guest is unbound from the vfio_ap device driver, the adapter to which the queue is attached will be removed from the guest's AP configuration. Doing so implicitly removes all queues associated with that adapter because the AP architecture precludes removing a single queue. Those queues also need to be reset.

This patch series ensures that all queues removed from a guest's AP configuration are reset for all possible scenarios.

Changelog v1=> v2:
-----------------
* Fixed CHECKPATCH errors

* Added line between description and Acked-by in patch 5/6

Tony Krowiak (6):
s390/vfio-ap: always filter entire AP matrix
s390/vfio-ap: loop over the shadow APCB when filtering guest's AP
configuration
s390/vfio-ap: let 'on_scan_complete' callback filter matrix and update
guest's APCB
s390/vfio-ap: reset queues filtered from the guest's AP config s390/vfio-ap: reset queues associated with adapter for queue unbound
from driver
s390/vfio-ap: do not reset queue removed from host config

 drivers/s390/crypto/vfio_ap_ops.c     | 268 +++++++++++++++++---------
 drivers/s390/crypto/vfio_ap_private.h |  11 +-
 2 files changed, 184 insertions(+), 95 deletions(-)
Signature · 1 line
2.43.0