Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 11ad65b7 authored by David Hildenbrand's avatar David Hildenbrand Committed by Christian Borntraeger
Browse files

KVM: s390: enable ib only if available



Let's enable intervention bypass only if the facility is acutally
available.

Reviewed-by: default avatarChristian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: default avatarDavid Hildenbrand <dahi@linux.vnet.ibm.com>
Signed-off-by: default avatarChristian Borntraeger <borntraeger@de.ibm.com>
parent 72cd82b9
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1845,7 +1845,9 @@ int kvm_arch_vcpu_setup(struct kvm_vcpu *vcpu)

	if (test_kvm_facility(vcpu->kvm, 8))
		vcpu->arch.sie_block->ecb2 |= 0x08;
	vcpu->arch.sie_block->eca   = 0xC1002000U;
	vcpu->arch.sie_block->eca = 0x81002000U;
	if (sclp.has_ib)
		vcpu->arch.sie_block->eca |= 0x40000000U;
	if (sclp.has_siif)
		vcpu->arch.sie_block->eca |= 1;
	if (sclp.has_sigpif)