summaryrefslogtreecommitdiffstats
path: root/arch/s390
diff options
context:
space:
mode:
authorChristian Borntraeger <borntraeger@de.ibm.com>2015-04-16 16:58:22 +0200
committerChristian Borntraeger <borntraeger@de.ibm.com>2015-05-08 15:51:12 +0200
commit785dbef407d8b3c82348aba2689e493c752c62ec (patch)
tree230adb5cebc7fb963f7df9b90f89bb3486467f0c /arch/s390
parentb938eacea0b6881f2116a061e6da3ec840e75137 (diff)
downloadop-kernel-dev-785dbef407d8b3c82348aba2689e493c752c62ec.zip
op-kernel-dev-785dbef407d8b3c82348aba2689e493c752c62ec.tar.gz
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>
Diffstat (limited to 'arch/s390')
-rw-r--r--arch/s390/kvm/kvm-s390.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/s390/kvm/kvm-s390.c b/arch/s390/kvm/kvm-s390.c
index 8cd8e7b..f5282e6 100644
--- a/arch/s390/kvm/kvm-s390.c
+++ b/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)
{
+ if (!vcpu->requests)
+ return 0;
retry:
s390_vcpu_unblock(vcpu);
/*
OpenPOWER on IntegriCloud