[K][PULL] zKVM: Crypto Passthrough Hotplug

frank.heimes at canonical.com frank.heimes at canonical.com
Fri Sep 9 15:51:37 UTC 2022


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

The initial implementation of Crypto Passthrough for KVM does not include hotplug.
This pull request adds hotplug support, which allows to dynamically assign
and remove crypto adapters to/from a running KVM guest.

---

The following changes since commit f1c0a2b9be484f4ccfc6117966a5a0571d0c440e:

  UBUNTU: [Packaging] Enable building zfs during cross-compile (2022-09-07 12:24:45 +0100)

are available in the Git repository at:

  https://git.launchpad.net/~fheimes/+git/lp1852741/ a535c0a49e125fa7b68492ecd5175f33a960f35d

for you to fetch changes up to a535c0a49e125fa7b68492ecd5175f33a960f35d:

  MAINTAINERS: pick up all vfio_ap docs for VFIO AP maintainers (2022-09-09 15:49:21 +0200)

----------------------------------------------------------------
Tony Krowiak (20):
      s390/vfio-ap: use new AP bus interface to search for queue devices
      s390/vfio-ap: move probe and remove callbacks to vfio_ap_ops.c
      s390/vfio-ap: manage link between queue struct and matrix mdev
      s390/vfio-ap: introduce shadow APCB
      s390/vfio-ap: refresh guest's APCB by filtering AP resources assigned to mdev
      s390/vfio-ap: allow assignment of unavailable AP queues to mdev device
      s390/vfio-ap: rename matrix_dev->lock mutex to matrix_dev->mdevs_lock
      s390/vfio-ap: introduce new mutex to control access to the KVM pointer
      s390/vfio-ap: use proper locking order when setting/clearing KVM pointer
      s390/vfio-ap: prepare for dynamic update of guest's APCB on assign/unassign
      s390/vfio-ap: prepare for dynamic update of guest's APCB on queue probe/remove
      s390/vfio-ap: allow hot plug/unplug of AP devices when assigned/unassigned
      s390/vfio-ap: hot plug/unplug of AP devices when probed/removed
      s390/vfio-ap: reset queues after adapter/domain unassignment
      s390/vfio-ap: implement in-use callback for vfio_ap driver
      s390/vfio-ap: sysfs attribute to display the guest's matrix
      s390/vfio-ap: handle config changed and scan complete notification
      s390/vfio-ap: update docs to include dynamic config support
      s390/Docs: new doc describing lock usage by the vfio_ap device driver
      MAINTAINERS: pick up all vfio_ap docs for VFIO AP maintainers

 Documentation/s390/vfio-ap-locking.rst |  105 +++
 Documentation/s390/vfio-ap.rst         |  492 +++++++----
 MAINTAINERS                            |    2 +-
 drivers/s390/crypto/ap_bus.c           |   31 +-
 drivers/s390/crypto/vfio_ap_drv.c      |  124 +--
 drivers/s390/crypto/vfio_ap_ops.c      | 1441 +++++++++++++++++++++++++-------
 drivers/s390/crypto/vfio_ap_private.h  |   47 +-
 7 files changed, 1651 insertions(+), 591 deletions(-)
 create mode 100644 Documentation/s390/vfio-ap-locking.rst



More information about the kernel-team mailing list