KVM: s390: Optimize ucontrol path
authorChristian Borntraeger <borntraeger@de.ibm.com>
Thu, 6 Mar 2014 15:01:38 +0000 (16:01 +0100)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Mon, 17 Mar 2014 10:06:51 +0000 (11:06 +0100)
commit2955c83f72801245afd0fe5c560cc75b82bea9aa
treedfb63b55c26af70604c8f175a8c11af557906ac4
parentfed495d25e0137028c37678a14cd1d8466c02dd3
KVM: s390: Optimize ucontrol path

Since commit 7c470539c95630c1f2a10f109e96f249730b75eb
(s390/kvm: avoid automatic sie reentry) we will run through the C code
of KVM on host interrupts instead of just reentering the guest. This
will result in additional ucontrol exits (at least HZ per second). Let
handle a 0 intercept in the kernel and dont return to userspace,
even if in ucontrol mode.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
CC: stable@vger.kernel.org
arch/s390/kvm/kvm-s390.c