Skip to content

Commit 785dbef

Browse files
committed
KVM: s390: optimize round trip time in request handling
The fast path for a sie exit is that no kvm reqest is pending. Make an early check to skip all single bit checks. Reviewed-by: David Hildenbrand <[email protected]> Signed-off-by: Christian Borntraeger <[email protected]>
1 parent b938eac commit 785dbef

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/s390/kvm/kvm-s390.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1720,6 +1720,8 @@ static bool ibs_enabled(struct kvm_vcpu *vcpu)
17201720

17211721
static int kvm_s390_handle_requests(struct kvm_vcpu *vcpu)
17221722
{
1723+
if (!vcpu->requests)
1724+
return 0;
17231725
retry:
17241726
s390_vcpu_unblock(vcpu);
17251727
/*

0 commit comments

Comments
 (0)