powerpc, KVM: Rework KVM checks in first-level interrupt handlers
authorPaul Mackerras <paulus@samba.org>
Wed, 29 Jun 2011 00:18:26 +0000 (00:18 +0000)
committerAvi Kivity <avi@redhat.com>
Tue, 12 Jul 2011 10:16:48 +0000 (13:16 +0300)
commitb01c8b54a1a271c0fc4243845927fe1d250767a3
tree4e818a41d602aa07cbdc06eca9372b9b95c533a4
parentf05ed4d56e9cff1c46d2b3049ba0c72e7e29392f
powerpc, KVM: Rework KVM checks in first-level interrupt handlers

Instead of branching out-of-line with the DO_KVM macro to check if we
are in a KVM guest at the time of an interrupt, this moves the KVM
check inline in the first-level interrupt handlers.  This speeds up
the non-KVM case and makes sure that none of the interrupt handlers
are missing the check.

Because the first-level interrupt handlers are now larger, some things
had to be move out of line in exceptions-64s.S.

This all necessitated some minor changes to the interrupt entry code
in KVM.  This also streamlines the book3s_32 KVM test.

Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Alexander Graf <agraf@suse.de>
arch/powerpc/include/asm/exception-64s.h
arch/powerpc/kernel/exceptions-64s.S
arch/powerpc/kvm/book3s_rmhandlers.S
arch/powerpc/kvm/book3s_segment.S
arch/powerpc/platforms/iseries/exception.S
arch/powerpc/platforms/iseries/exception.h