diff options
author | David Hildenbrand <dahi@linux.vnet.ibm.com> | 2015-11-27 06:34:28 -0500 |
---|---|---|
committer | Christian Borntraeger <borntraeger@de.ibm.com> | 2016-06-21 03:43:35 -0400 |
commit | 4ceafa9027b0c2671ab731c7d95896a5b3c2dc0b (patch) | |
tree | fc653277f1b45f497c4f5edd5b7c0c198c2ada26 /arch/s390/kvm | |
parent | 535ef81c6e7910c0205f58a69ed6c765f8ba7f18 (diff) |
KVM: s390: vsie: support host-protection-interruption
Introduced with ESOP, therefore available for the guest if it
is allowed to use ESOP.
Acked-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Diffstat (limited to 'arch/s390/kvm')
-rw-r--r-- | arch/s390/kvm/vsie.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/s390/kvm/vsie.c b/arch/s390/kvm/vsie.c index 7c9835b0a33f..aaed63ce29b2 100644 --- a/arch/s390/kvm/vsie.c +++ b/arch/s390/kvm/vsie.c | |||
@@ -240,6 +240,9 @@ static int shadow_scb(struct kvm_vcpu *vcpu, struct vsie_page *vsie_page) | |||
240 | 240 | ||
241 | /* MVPG and Protection Exception Interpretation are always available */ | 241 | /* MVPG and Protection Exception Interpretation are always available */ |
242 | scb_s->eca |= scb_o->eca & 0x01002000U; | 242 | scb_s->eca |= scb_o->eca & 0x01002000U; |
243 | /* Host-protection-interruption introduced with ESOP */ | ||
244 | if (test_kvm_cpu_feat(vcpu->kvm, KVM_S390_VM_CPU_FEAT_ESOP)) | ||
245 | scb_s->ecb |= scb_o->ecb & 0x02U; | ||
243 | 246 | ||
244 | prepare_ibc(vcpu, vsie_page); | 247 | prepare_ibc(vcpu, vsie_page); |
245 | out: | 248 | out: |