]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit80fa87935b13f94231ea4d9f5e3ab08f6ca7b7ba
treee1fc869540a04f9003c26bd6d6598a8a848b8cd0
parent246663a0322e1e102d680c91e381605e940ad632
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