Paolo, Radim, the first pull request for 4.20 (or 5?) for KVM on s390. Mostly the vfio-ap support (KVM virtualization for crypto cards). This touches also base s390 - and depending on the kind of change I also expect future changes for vfio-ap via Martins tree. In case there will be addon changes via Martins tree I have created the topic branch "apv11" and merged that. If necessary, Martin can pull that topic branch as well. As of today there is no conflict, so right now this goes via the KVM tree. Please pull The following changes since commit 7876320f88802b22d4e2daf7eb027dd14175a0f8: Linux 4.19-rc4 (2018-09-16 11:52:37 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/kvms390/linux.git tags/kvm-s390-next-4.20-1 for you to fetch changes up to 55d09dd4c86060fbbc74ab2b1bfaed401cd0163a: Merge branch 'apv11' of git://git.kernel.org/pub/scm/linux/kernel/git/kvms390/linux into kernelorgnext (2018-10-01 08:53:23 +0200) ---------------------------------------------------------------- KVM: s390: Features for 4.20 - Initial version of AP crypto virtualization via vfio-mdev - Set the host program identifier - Optimize page table locking ---------------------------------------------------------------- Christian Borntraeger (1): Merge branch 'apv11' of git://git.kernel.org/.../kvms390/linux into kernelorgnext Collin Walling (1): KVM: s390: set host program identifier David Hildenbrand (3): KVM: s390: vsie: simulate VCPU SIE entry/exit KVM: s390: introduce and use KVM_REQ_VSIE_RESTART s390/mm: optimize locking without huge pages in gmap_pmd_op_walk() Pierre Morel (9): KVM: s390: Clear Crypto Control Block when using vSIE KVM: s390: vsie: Do the CRYCB validation first KVM: s390: vsie: Make use of CRYCB FORMAT2 clear KVM: s390: vsie: Allow CRYCB FORMAT-2 KVM: s390: vsie: allow CRYCB FORMAT-1 KVM: s390: vsie: allow CRYCB FORMAT-0 KVM: s390: vsie: allow guest FORMAT-0 CRYCB on host FORMAT-1 KVM: s390: vsie: allow guest FORMAT-1 CRYCB on host FORMAT-2 KVM: s390: vsie: allow guest FORMAT-0 CRYCB on host FORMAT-2 Tony Krowiak (15): KVM: s390: refactor crypto initialization s390: vfio-ap: base implementation of VFIO AP device driver s390: vfio-ap: register matrix device with VFIO mdev framework s390: vfio-ap: sysfs interfaces to configure adapters s390: vfio-ap: sysfs interfaces to configure domains s390: vfio-ap: sysfs interfaces to configure control domains s390: vfio-ap: sysfs interface to view matrix mdev matrix KVM: s390: interface to clear CRYCB masks s390: vfio-ap: implement mediated device open callback s390: vfio-ap: implement VFIO_DEVICE_GET_INFO ioctl s390: vfio-ap: zeroize the AP queues s390: vfio-ap: implement VFIO_DEVICE_RESET ioctl KVM: s390: device attrs to enable/disable AP interpretation KVM: s390: CPU model support for AP virtualization s390: doc: detailed specifications for AP virtualization Documentation/s390/vfio-ap.txt | 837 +++++++++++++++++++++++++++++ MAINTAINERS | 12 + arch/s390/Kconfig | 11 + arch/s390/include/asm/kvm_host.h | 13 +- arch/s390/include/uapi/asm/kvm.h | 2 + arch/s390/kvm/kvm-s390.c | 135 +++-- arch/s390/kvm/kvm-s390.h | 1 + arch/s390/kvm/vsie.c | 210 +++++++- arch/s390/mm/gmap.c | 10 +- arch/s390/tools/gen_facilities.c | 2 + drivers/iommu/Kconfig | 8 + drivers/s390/crypto/Makefile | 4 + drivers/s390/crypto/vfio_ap_drv.c | 157 ++++++ drivers/s390/crypto/vfio_ap_ops.c | 968 ++++++++++++++++++++++++++++++++++ drivers/s390/crypto/vfio_ap_private.h | 88 ++++ include/uapi/linux/vfio.h | 2 + 16 files changed, 2397 insertions(+), 63 deletions(-) create mode 100644 Documentation/s390/vfio-ap.txt create mode 100644 drivers/s390/crypto/vfio_ap_drv.c create mode 100644 drivers/s390/crypto/vfio_ap_ops.c create mode 100644 drivers/s390/crypto/vfio_ap_private.h