kvm/ppc: IRQ disabling cleanup
authorScott Wood <scottwood@freescale.com>
Fri, 10 Jan 2014 01:18:40 +0000 (19:18 -0600)
committerAlexander Graf <agraf@suse.de>
Mon, 27 Jan 2014 15:00:55 +0000 (16:00 +0100)
commit6c85f52b10fd60e45c6e30c5b85d116406bd3c9b
treee1fc869540a04f9003c26bd6d6598a8a848b8cd0
parent70713fe315ed14cd1bb07d1a7f33e973d136ae3d
kvm/ppc: IRQ disabling cleanup

Simplify the handling of lazy EE by going directly from fully-enabled
to hard-disabled.  This replaces the lazy_irq_pending() check
(including its misplaced kvm_guest_exit() call).

As suggested by Tiejun Chen, move the interrupt disabling into
kvmppc_prepare_to_enter() rather than have each caller do it.  Also
move the IRQ enabling on heavyweight exit into
kvmppc_prepare_to_enter().

Signed-off-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
arch/powerpc/include/asm/kvm_ppc.h
arch/powerpc/kvm/book3s_pr.c
arch/powerpc/kvm/booke.c
arch/powerpc/kvm/powerpc.c