RFC KVM: s390: Add support for protected VMs
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest37 patches 160 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/37 | DOCUMENTATION: protvirt: Protected virtual machine introductionDocumentation/ | +23 | 3 replies | |
| 2/37 | s390/protvirt: introduce host side setupDocumentation/ arch/ arch/ +5 more | +126 | 15 replies | |
| 3/37 | s390/protvirt: add ultravisor initializationarch/ arch/ arch/ | +72 | 6 replies | |
| 4/37 | KVM: s390: protvirt: Add initial lifecycle handlingarch/ arch/ arch/ +4 more | +622 | 17 replies | |
| 5/37 | s390: KVM: Export PV handle to gmaparch/ arch/ | +2 | 1 reply | |
| 6/37 | s390: UV: Add import and export to UV libraryarch/ | +51 | 10 replies | |
| 7/37 | KVM: s390: protvirt: Secure memory is not mergeablearch/ arch/ arch/ | +25 | 14 replies | |
| 8/37 | KVM: s390: add missing include in gmap.harch/ | +1 | 2 replies | |
| 9/37 | KVM: s390: protvirt: Implement on-demand pinningarch/ arch/ arch/ +2 more | +72 | 18 replies | |
| 10/37 | s390: add (non)secure page access exceptions handlersarch/ arch/ | +66 | 0 replies | |
| 11/37 | DOCUMENTATION: protvirt: Interrupt injectionDocumentation/ | +27 | 4 replies | |
| 12/37 | KVM: s390: protvirt: Handle SE notification interceptionsarch/ arch/ | +20 | 5 replies | |
| 13/37 | KVM: s390: protvirt: Add interruption injection controlsarch/ | +21 | 7 replies | |
| 14/37 | KVM: s390: protvirt: Implement interruption injectionarch/ arch/ | +149 | 4 replies | |
| 15/37 | KVM: s390: protvirt: Add machine-check interruption injection controlsarch/ | +24 | 2 replies | |
| 16/37 | KVM: s390: protvirt: Implement machine-check interruption injectionarch/ | +8 | 1 reply | |
| 17/37 | DOCUMENTATION: protvirt: Instruction emulationDocumentation/ | +47 | 6 replies | |
| 18/37 | KVM: s390: protvirt: Handle spec exception loopsarch/ | +7 | 1 reply | |
| 19/37 | KVM: s390: protvirt: Add new gprs location handlingarch/ arch/ | +14 | 9 replies | |
| 20/37 | KVM: S390: protvirt: Introduce instruction data area bounce bufferarch/ arch/ arch/ | +44 | 6 replies | |
| 21/37 | KVM: S390: protvirt: Instruction emulationarch/ arch/ | +25 | 3 replies | |
| 22/37 | KVM: s390: protvirt: Add SCLP handlingarch/ arch/ | +27 | 0 replies | |
| 23/37 | KVM: s390: protvirt: Make sure prefix is always protectedarch/ | +9 | 6 replies | |
| 24/37 | KVM: s390: protvirt: Write sthyi data to instruction data areaarch/ | +10 | 4 replies | |
| 25/37 | KVM: s390: protvirt: STSI handlingarch/ | +7 | 1 reply | |
| 26/37 | KVM: s390: protvirt: Only sync fmt4 registersarch/ | +82 | 2 replies | |
| 27/37 | KVM: s390: protvirt: SIGP handlingarch/ | +2 | 2 replies | |
| 28/37 | KVM: s390: protvirt: Add program exception injectionarch/ | +18 | 0 replies | |
| 29/37 | KVM: s390: protvirt: Sync pv statearch/ arch/ | +10 | 2 replies | |
| 30/37 | DOCUMENTATION: protvirt: Diag 308 IPLDocumentation/ | +62 | 6 replies | |
| 31/37 | KVM: s390: protvirt: Add diag 308 subcode 8 - 10 handlingarch/ arch/ | +11 | 4 replies | |
| 32/37 | KVM: s390: protvirt: UV calls diag308 0, 1arch/ arch/ arch/ +3 more | +69 | 4 replies | |
| 33/37 | KVM: s390: Introduce VCPU reset IOCTLarch/ include/ | +59 | 3 replies | |
| 34/37 | KVM: s390: protvirt: Report CPU state to Ultravisorarch/ | +4 | 0 replies | |
| 35/37 | KVM: s390: Fix cpu reset local IRQ clearingarch/ | +2 | 2 replies | |
| 36/37 | KVM: s390: protvirt: Support cmd 5 operation statearch/ arch/ include/ | +6 | 5 replies | |
| 37/37 | KVM: s390: protvirt: Add UV debug tracearch/ arch/ arch/ | +34 | 0 replies |
Reviews trailers per patch
9 of 37 patches have a Reviewed-by or Acked-by.
| Patch | Christian Borntraeger | David Hildenbrand | Thomas Huth |
|---|---|---|---|
| 1/37 | A-b | ||
| 2/37 | R-b | ||
| 3/37 | R-b | ||
| 4/37 | |||
| 5/37 | |||
| 6/37 | R-b | ||
| 7/37 | R-b | R-b | R-b |
| 8/37 | R-b | ||
| 9/37 | |||
| 10/37 | |||
| 11/37 | |||
| 12/37 | |||
| 13/37 | |||
| 14/37 | |||
| 15/37 | |||
| 16/37 | |||
| 17/37 | |||
| 18/37 | R-b | ||
| 19/37 | |||
| 20/37 | |||
| 21/37 | |||
| 22/37 | |||
| 23/37 | |||
| 24/37 | R-b | ||
| 25/37 | |||
| 26/37 | |||
| 27/37 | R-b | ||
| 28/37 | |||
| 29/37 | |||
| 30/37 | |||
| 31/37 | |||
| 32/37 | |||
| 33/37 | |||
| 34/37 | |||
| 35/37 | |||
| 36/37 | |||
| 37/37 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [RFC 00/37] KVM: s390: Add support for protected VMs
Protected VMs (PVM) are KVM VMs, where KVM can't access the VM's state like guest memory and guest registers anymore. Instead the PVMs are mostly managed by a new entity called Ultravisor (UV), which provides an API, so KVM and the PV can request management actions.
PVMs are encrypted at rest and protected from hypervisor access while running. They switch from a normal operation into protected mode, so we can still use the standard boot process to load a encrypted blob and then move it into protected mode.
Rebooting is only possible by passing through the unprotected/normal mode and switching to protected again.
All patches are in the protvirt branch of the korg s390 kvm git.
Claudio will present the technology at his presentation at KVM Forum 2019.
Christian Borntraeger (1):
KVM: s390: protvirt: Add SCLP handling
Claudio Imbrenda (2):
KVM: s390: add missing include in gmap.h
KVM: s390: protvirt: Implement on-demand pinning
Janosch Frank (27):
DOCUMENTATION: protvirt: Protected virtual machine introduction
KVM: s390: protvirt: Add initial lifecycle handling
s390: KVM: Export PV handle to gmap
s390: UV: Add import and export to UV library
KVM: s390: protvirt: Secure memory is not mergeable
DOCUMENTATION: protvirt: Interrupt injection
KVM: s390: protvirt: Handle SE notification interceptions
DOCUMENTATION: protvirt: Instruction emulation
KVM: s390: protvirt: Handle spec exception loops
KVM: s390: protvirt: Add new gprs location handling
KVM: S390: protvirt: Introduce instruction data area bounce buffer
KVM: S390: protvirt: Instruction emulation
KVM: s390: protvirt: Make sure prefix is always protected
KVM: s390: protvirt: Write sthyi data to instruction data area
KVM: s390: protvirt: STSI handling
KVM: s390: protvirt: Only sync fmt4 registers
KVM: s390: protvirt: SIGP handling
KVM: s390: protvirt: Add program exception injection
KVM: s390: protvirt: Sync pv state
DOCUMENTATION: protvirt: Diag 308 IPL
KVM: s390: protvirt: Add diag 308 subcode 8 - 10 handling
KVM: s390: protvirt: UV calls diag308 0, 1
KVM: s390: Introduce VCPU reset IOCTL
KVM: s390: protvirt: Report CPU state to Ultravisor
KVM: s390: Fix cpu reset local IRQ clearing
KVM: s390: protvirt: Support cmd 5 operation state
KVM: s390: protvirt: Add UV debug trace
Michael Mueller (4):
KVM: s390: protvirt: Add interruption injection controls
KVM: s390: protvirt: Implement interruption injection
KVM: s390: protvirt: Add machine-check interruption injection controls
KVM: s390: protvirt: Implement machine-check interruption injection
Vasily Gorbik (3):
s390/protvirt: introduce host side setup s390/protvirt: add ultravisor initialization
s390: add (non)secure page access exceptions handlers
.../admin-guide/kernel-parameters.txt | 5 + Documentation/virtual/kvm/s390-pv-boot.txt | 62 +++ Documentation/virtual/kvm/s390-pv.txt | 97 ++++ arch/s390/boot/Makefile | 2 +- arch/s390/boot/uv.c | 20 +- arch/s390/include/asm/gmap.h | 4 + arch/s390/include/asm/kvm_host.h | 103 +++- arch/s390/include/asm/uv.h | 255 +++++++++- arch/s390/include/uapi/asm/kvm.h | 5 +- arch/s390/kernel/Makefile | 1 + arch/s390/kernel/pgm_check.S | 4 +- arch/s390/kernel/setup.c | 7 +- arch/s390/kernel/uv.c | 121 +++++ arch/s390/kvm/Kconfig | 9 + arch/s390/kvm/Makefile | 2 +- arch/s390/kvm/diag.c | 7 + arch/s390/kvm/intercept.c | 91 +++- arch/s390/kvm/interrupt.c | 208 ++++++-- arch/s390/kvm/kvm-s390.c | 476 +++++++++++++++--- arch/s390/kvm/kvm-s390.h | 58 +++ arch/s390/kvm/priv.c | 9 +- arch/s390/kvm/pv.c | 317 ++++++++++++ arch/s390/mm/fault.c | 64 +++ arch/s390/mm/gmap.c | 28 +- include/uapi/linux/kvm.h | 42 ++ 25 files changed, 1848 insertions(+), 149 deletions(-) create mode 100644 Documentation/virtual/kvm/s390-pv-boot.txt create mode 100644 Documentation/virtual/kvm/s390-pv.txt create mode 100644 arch/s390/kernel/uv.c create mode 100644 arch/s390/kvm/pv.c
Signature · 1 line
2.20.1