[N][PULL] zcrypt: extend error recovery to deal with device scans

frank.heimes at canonical.com frank.heimes at canonical.com
Fri Mar 22 12:48:54 UTC 2024


BugLink: https://bugs.launchpad.net/bugs/lp2050019

The error recovery of a crypto request currently fails if a device is not available or the device is not completely setup and bound if the device has been discovered due to a bus scan.
If, during request handling, a device is lost and a bus scan is triggered the DD must wait for the bus scan (including the device binding) to complete before giving up on reties.

This item is important to support life guest relocation where the APQN sets on the source and target guests differ.

The following changes since commit eb9201aef9e790ed6ddd5f1d7f429156ae124457:

  UBUNTU: [Config] enable CONFIG_ARCH_MHP_MEMMAP_ON_MEMORY_ENABLE and CONFIG_MHP_MEMMAP_ON_MEMORY for s390x (2024-03-19 16:54:46 +0100)

are available in the Git repository at:

  https://git.launchpad.net/~fheimes/+git/lp2050019/ c416b15af94b2556e7e2ab5327115ac9fb2c5341

for you to fetch changes up to c416b15af94b2556e7e2ab5327115ac9fb2c5341:

  s390/pkey: improve pkey retry behavior (2024-03-21 21:21:59 +0100)

----------------------------------------------------------------
Harald Freudenberger (13):
      s390/zcrypt: harmonize debug feature calls and defines
      s390/zcrypt: introduce dynamic debugging for AP and zcrypt code
      s390/pkey: harmonize pkey s390 debug feature calls
      s390/pkey: introduce dynamic debugging for pkey
      s390/ap: add debug possibility for AP messages
      s390/zcrypt: add debug possibility for CCA and EP11 messages
      s390/ap: rearm APQNs bindings complete completion
      s390/ap: clarify AP scan bus related functions and variables
      s390/ap: rework ap_scan_bus() to return true on config change
      s390/ap: introduce mutex to lock the AP bus scan
      s390/zcrypt: introduce retries on in-kernel send CPRB functions
      s390/zcrypt: improve zcrypt retry behavior
      s390/pkey: improve pkey retry behavior

 drivers/s390/crypto/ap_bus.c           | 252 ++++++++++++++++++++++++---------
 drivers/s390/crypto/ap_bus.h           |   8 +-
 drivers/s390/crypto/ap_debug.h         |   4 +-
 drivers/s390/crypto/ap_queue.c         |  31 ++--
 drivers/s390/crypto/pkey_api.c         | 226 +++++++++++++++--------------
 drivers/s390/crypto/zcrypt_api.c       | 228 +++++++++++++++--------------
 drivers/s390/crypto/zcrypt_api.h       |   9 ++
 drivers/s390/crypto/zcrypt_ccamisc.c   | 214 +++++++++++++---------------
 drivers/s390/crypto/zcrypt_debug.h     |   4 +-
 drivers/s390/crypto/zcrypt_ep11misc.c  | 127 ++++++++---------
 drivers/s390/crypto/zcrypt_error.h     |   5 +-
 drivers/s390/crypto/zcrypt_msgtype50.c |  14 +-
 drivers/s390/crypto/zcrypt_msgtype6.c  |  45 +++---
 13 files changed, 649 insertions(+), 518 deletions(-)



More information about the kernel-team mailing list