]> git.karo-electronics.de Git - linux-beck.git/commitdiff
KVM: s390: optimize round trip time in request handling
authorChristian Borntraeger <borntraeger@de.ibm.com>
Thu, 16 Apr 2015 14:58:22 +0000 (16:58 +0200)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Fri, 8 May 2015 13:51:12 +0000 (15:51 +0200)
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 <dahi@linux.vnet.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/kvm/kvm-s390.c

index 8cd8e7b288c5db84bf358785bb9aee4510c69050..f5282e62f87f4e8898f44e187839d99abfefa2d9 100644 (file)
@@ -1720,6 +1720,8 @@ static bool ibs_enabled(struct kvm_vcpu *vcpu)
 
 static int kvm_s390_handle_requests(struct kvm_vcpu *vcpu)
 {
+       if (!vcpu->requests)
+               return 0;
 retry:
        s390_vcpu_unblock(vcpu);
        /*