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

Commit c0d744a9 authored by Carsten Otte's avatar Carsten Otte Committed by Avi Kivity
Browse files

KVM: s390: ucontrol: disable in-kernel handling of SIE intercepts



This patch disables in-kernel handling of SIE intercepts for user
controlled virtual machines. All intercepts are passed to userspace
via KVM_EXIT_SIE exit reason just like SIE intercepts that cannot be
handled in-kernel for regular KVM guests.

Signed-off-by: default avatarCarsten Otte <cotte@de.ibm.com>
Signed-off-by: default avatarMarcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
parent 5b1c1493
Loading
Loading
Loading
Loading
+4 −1
Original line number Original line Diff line number Diff line
@@ -566,6 +566,9 @@ rerun_vcpu:
		rc = __vcpu_run(vcpu);
		rc = __vcpu_run(vcpu);
		if (rc)
		if (rc)
			break;
			break;
		if (kvm_is_ucontrol(vcpu->kvm))
			rc = -EOPNOTSUPP;
		else
			rc = kvm_handle_sie_intercept(vcpu);
			rc = kvm_handle_sie_intercept(vcpu);
	} while (!signal_pending(current) && !rc);
	} while (!signal_pending(current) && !rc);