]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
KVM: Fix unbounded preemption latency
authorAvi Kivity <avi@qumranet.com>
Tue, 15 Jan 2008 16:27:32 +0000 (18:27 +0200)
committerAvi Kivity <avi@qumranet.com>
Wed, 30 Jan 2008 16:01:22 +0000 (18:01 +0200)
commit6c14280125a374d4c279a68276f97245e03e3f68
tree9a562a81927810f5e1ef38b05c109129a19b93cd
parent97db56ce6cc2a0766b536cc227a1da20acc5d82f
KVM: Fix unbounded preemption latency

When preparing to enter the guest, if an interrupt comes in while
preemption is disabled but interrupts are still enabled, we miss a
preemption point.  Fix by explicitly checking whether we need to
reschedule.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Avi Kivity <avi@qumranet.com>
arch/x86/kvm/x86.c