Skip to content

Commit

Permalink
KVM: s390: optimize round trip time in request handling
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
borntraeger committed May 8, 2015
1 parent b938eac commit 785dbef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/s390/kvm/kvm-s390.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
/*
Expand Down

0 comments on commit 785dbef

Please sign in to comment.