summaryrefslogtreecommitdiffstats
path: root/arch/s390/kvm/kvm-s390.c
diff options
context:
space:
mode:
authorJanosch Frank2016-08-04 09:57:36 +0200
committerChristian Borntraeger2017-01-30 11:17:28 +0100
commitcd1836f583d78bdd15ef748f4d85bf007569c7ad (patch)
treeae8d9a7818721f5e006d19d8ea538bb4089cce0b /arch/s390/kvm/kvm-s390.c
parentKVM: s390: gaccess: add ESOP2 handling (diff)
downloadkernel-qcow2-linux-cd1836f583d78bdd15ef748f4d85bf007569c7ad.tar.gz
kernel-qcow2-linux-cd1836f583d78bdd15ef748f4d85bf007569c7ad.tar.xz
kernel-qcow2-linux-cd1836f583d78bdd15ef748f4d85bf007569c7ad.zip
KVM: s390: instruction-execution-protection support
The new Instruction Execution Protection needs to be enabled before the guest can use it. Therefore we pass the IEP facility bit to the guest and enable IEP interpretation. Signed-off-by: Janosch Frank <frankja@linux.vnet.ibm.com> Reviewed-by: David Hildenbrand <dahi@linux.vnet.ibm.com> Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Diffstat (limited to 'arch/s390/kvm/kvm-s390.c')
-rw-r--r--arch/s390/kvm/kvm-s390.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/s390/kvm/kvm-s390.c b/arch/s390/kvm/kvm-s390.c
index bec71e902be3..e5130818fb03 100644
--- a/arch/s390/kvm/kvm-s390.c
+++ b/arch/s390/kvm/kvm-s390.c
@@ -1938,6 +1938,8 @@ int kvm_arch_vcpu_setup(struct kvm_vcpu *vcpu)
if (test_kvm_facility(vcpu->kvm, 8) && sclp.has_pfmfi)
vcpu->arch.sie_block->ecb2 |= 0x08;
+ if (test_kvm_facility(vcpu->kvm, 130))
+ vcpu->arch.sie_block->ecb2 |= 0x20;
vcpu->arch.sie_block->eca = 0x1002000U;
if (sclp.has_cei)
vcpu->arch.sie_block->eca |= 0x80000000U;