Skip to content

Commit 4ceafa9

Browse files
David Hildenbrandborntraeger
authored andcommitted
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 <[email protected]> Signed-off-by: David Hildenbrand <[email protected]> Signed-off-by: Christian Borntraeger <[email protected]>
1 parent 535ef81 commit 4ceafa9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

arch/s390/kvm/vsie.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,9 @@ static int shadow_scb(struct kvm_vcpu *vcpu, struct vsie_page *vsie_page)
240240

241241
/* MVPG and Protection Exception Interpretation are always available */
242242
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;
243246

244247
prepare_ibc(vcpu, vsie_page);
245248
out:

0 commit comments

Comments
 (0)