Skip to content

s390/vfio_ap: crypto pass-through for SE guests

Tony Krowiak kvm linux-s390 lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest12 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12s390/vfio-ap: No need to check the 'E' and 'I' bits in APQSW after TAPQdrivers/s390/crypto/vfio_ap_ops.c+2 -110 replies
2/12s390/vfio-ap: clean up irq resources if possibledrivers/s390/crypto/vfio_ap_ops.c+7 -40 replies
3/12s390/vfio-ap: wait for response code 05 to clear on queue resetdrivers/s390/crypto/vfio_ap_ops.c+2 -00 replies
4/12s390/vfio-ap: allow deconfigured queue to be passed through to a guestdrivers/s390/crypto/vfio_ap_ops.c+4 -20 replies
5/12s390/vfio-ap: remove upper limit on wait for queue reset to completedrivers/s390/crypto/vfio_ap_ops.c+35 -290 replies
6/12s390/vfio-ap: store entire AP queue status word with the queue objectdrivers/s390/crypto/vfio_ap_ops.c drivers/s390/crypto/vfio_ap_private.h+17 -140 replies
7/12s390/vfio-ap: use work struct to verify queue resetdrivers/s390/crypto/vfio_ap_ops.c drivers/s390/crypto/vfio_ap_private.h+25 -250 replies
8/12s390/vfio-ap: handle queue state change in progress on resetdrivers/s390/crypto/vfio_ap_ops.c+3 -10 replies
9/12s390/vfio-ap: check for TAPQ response codes 0x35 and 0x36drivers/s390/crypto/vfio_ap_ops.c+12 -10 replies
10/12s390/uv: export uv_pin_shared for direct usagearch/s390/include/asm/uv.h arch/s390/kernel/uv.c+8 -10 replies
11/12kvm: s390: export kvm_s390_pv*_is_protected functionsarch/s390/include/asm/kvm_host.h arch/s390/kvm/kvm-s390.h arch/s390/kvm/pv.c+17 -120 replies
12/12s390/vfio-ap: Make sure nib is shareddrivers/s390/crypto/vfio_ap_ops.c+30 -00 replies

Reviews trailers per patch

9 of 12 patches have a Reviewed-by or Acked-by.

PatchJanosch FrankViktor MihajlovskiJason J. HerneHalil Pasic
1/12A-b T-b
2/12A-b T-b R-b A-b
3/12A-b T-b
4/12T-b R-b A-b
5/12T-b R-b A-b
6/12T-b
7/12A-b T-b R-b
8/12T-b R-b A-b
9/12T-b R-b R-b
10/12T-b
11/12T-b
12/12T-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v1 thread

Cover letter [PATCH 00/12] s390/vfio_ap: crypto pass-through for SE guests

This patch series is for the changes required in the vfio_ap device driver to facilitate pass-through of crypto devices to a secure execution guest. In particular, it is critical that no data from the queues passed through to the SE guest is leaked when the guest is destroyed. There are also some new response codes returned from the PQAP(ZAPQ) and PQAP(TAPQ) commands that have been added to the architecture in support of pass-through of crypto devices to SE guests; these need to be accounted for when handling the reset of queues.

Janosch Frank (1):
s390/uv: export uv_pin_shared for direct usage

Tony Krowiak (11):
s390/vfio-ap: No need to check the 'E' and 'I' bits in APQSW after
TAPQ
s390/vfio-ap: clean up irq resources if possible s390/vfio-ap: wait for response code 05 to clear on queue reset s390/vfio-ap: allow deconfigured queue to be passed through to a guest s390/vfio-ap: remove upper limit on wait for queue reset to complete s390/vfio-ap: store entire AP queue status word with the queue object s390/vfio-ap: use work struct to verify queue reset s390/vfio-ap: handle queue state change in progress on reset s390/vfio-ap: check for TAPQ response codes 0x35 and 0x36
kvm: s390: export kvm_s390_pv*_is_protected functions s390/vfio-ap: Make sure nib is shared

 arch/s390/include/asm/kvm_host.h      |   3 +
 arch/s390/include/asm/uv.h            |   6 +
 arch/s390/kernel/uv.c                 |   3 +-
 arch/s390/kvm/kvm-s390.h              |  12 --
 arch/s390/kvm/pv.c                    |  14 +++
 drivers/s390/crypto/vfio_ap_ops.c     | 164 +++++++++++++++++---------
 drivers/s390/crypto/vfio_ap_private.h |   6 +-
 7 files changed, 135 insertions(+), 73 deletions(-)
Signature · 1 line
2.39.3