소스 검색

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 <dahi@linux.vnet.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Christian Borntraeger 10 년 전
부모
커밋
785dbef407
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      arch/s390/kvm/kvm-s390.c

+ 2 - 0
arch/s390/kvm/kvm-s390.c

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