]> err.no Git - linux-2.6/commit
KVM: s390: fix interrupt delivery
authorCarsten Otte <cotte@de.ibm.com>
Wed, 21 May 2008 11:37:37 +0000 (13:37 +0200)
committerAvi Kivity <avi@qumranet.com>
Fri, 6 Jun 2008 18:08:26 +0000 (21:08 +0300)
commit0ff318674503ce3787ef62d84f4d948db204b268
tree7e3f964df1961aa858bbaf28aa2d455d156cdcc9
parent71cde5879f10b639506bc0b9f29a89f58b42a17e
KVM: s390: fix interrupt delivery

The current code delivers pending interrupts before it checks for
need_resched. On a busy host, this can lead to a longer interrupt
latency if the interrupt is injected while the process is scheduled
away. This patch moves delivering the interrupt _after_ schedule(),
which makes more sense.

Signed-off-by: Carsten Otte <cotte@de.ibm.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
arch/s390/kvm/kvm-s390.c