MIPS: KVM: Deliver guest interrupts after local_irq_disable()
authorJames Hogan <james.hogan@imgtec.com>
Thu, 29 May 2014 09:16:32 +0000 (10:16 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 30 May 2014 11:01:10 +0000 (13:01 +0200)
commit044f0f03eca0110e1835b2ea038a484b93950328
treea5400207feeaea3fe7efba2c51f06711f704dcf8
parent16fd5c1de4f00c7887e4c715dd46872a97e30e25
MIPS: KVM: Deliver guest interrupts after local_irq_disable()

When about to run the guest, deliver guest interrupts after disabling
host interrupts. This should prevent an hrtimer interrupt from being
handled after delivering guest interrupts, and therefore not delivering
the guest timer interrupt until after the next guest exit.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Gleb Natapov <gleb@kernel.org>
Cc: kvm@vger.kernel.org
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: linux-mips@linux-mips.org
Cc: Sanjay Lal <sanjayl@kymasys.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/mips/kvm/kvm_mips.c