KVM: s390: Support keyless subset guest mode
authorFarhan Ali <alifm@linux.vnet.ibm.com>
Fri, 24 Feb 2017 21:12:56 +0000 (16:12 -0500)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Fri, 21 Apr 2017 09:08:11 +0000 (11:08 +0200)
commit730cd632c4e485b90f97fe998e300045da094938
tree894c8643cbfbaa47b6973cd34a3e054840513e47
parent71cb1bf66ef0d1d36ff3f04150450df9dd8af654
KVM: s390: Support keyless subset guest mode

If the KSS facility is available on the machine, we also make it
available for our KVM guests.

The KSS facility bypasses storage key management as long as the guest
does not issue a related instruction. When that happens, the control is
returned to the host, which has to turn off KSS for a guest vcpu
before retrying the instruction.

Signed-off-by: Corey S. McQuay <csmcquay@linux.vnet.ibm.com>
Signed-off-by: Farhan Ali <alifm@linux.vnet.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/include/asm/kvm_host.h
arch/s390/include/uapi/asm/kvm.h
arch/s390/kvm/intercept.c
arch/s390/kvm/kvm-s390.c
arch/s390/kvm/kvm-s390.h
arch/s390/kvm/priv.c
arch/s390/kvm/vsie.c