OSDN Git Service

KVM: s390: optimize interrupt handling round trip time
authorJens Freimann <jfrei@linux.vnet.ibm.com>
Fri, 17 Apr 2015 08:21:04 +0000 (10:21 +0200)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Fri, 8 May 2015 13:51:15 +0000 (15:51 +0200)
commitffeca0ae880055457e56e45fd79cfa28d7160c30
treecf4f49a36cc28c34a0d829015e00bf309e2f1af7
parent27406cd50cf6653196eea8ebbb15a75596da01ca
KVM: s390: optimize interrupt handling round trip time

We can avoid checking guest control registers and guest PSW as well
as all the masking and calculations on the interrupt masks when
no interrupts are pending.

Also, the check for IRQ_PEND_COUNT can be removed, because we won't
enter the while loop if no interrupts are pending and invalid interrupt
types can't be injected.

Signed-off-by: Jens Freimann <jfrei@linux.vnet.ibm.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Reviewed-by: Dominik Dingel <dingel@linux.vnet.ibm.com>
Acked-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/kvm/interrupt.c