From: David Hildenbrand Date: Fri, 27 Nov 2015 11:34:28 +0000 (+0100) Subject: KVM: s390: vsie: support host-protection-interruption X-Git-Tag: v4.8-rc1~60^2~81^2~19 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4ceafa9027b0c2671ab731c7d95896a5b3c2dc0b;p=platform%2Fkernel%2Flinux-exynos.git 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 Signed-off-by: David Hildenbrand Signed-off-by: Christian Borntraeger --- diff --git a/arch/s390/kvm/vsie.c b/arch/s390/kvm/vsie.c index 7c9835b..aaed63c 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) /* MVPG and Protection Exception Interpretation are always available */ scb_s->eca |= scb_o->eca & 0x01002000U; + /* Host-protection-interruption introduced with ESOP */ + if (test_kvm_cpu_feat(vcpu->kvm, KVM_S390_VM_CPU_FEAT_ESOP)) + scb_s->ecb |= scb_o->ecb & 0x02U; prepare_ibc(vcpu, vsie_page); out: