summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm
diff options
context:
space:
mode:
authorNicholas Piggin <npiggin@gmail.com>2016-12-22 04:29:26 +1000
committerMichael Ellerman <mpe@ellerman.id.au>2017-01-27 15:41:21 +1100
commit7ede531773ea69fa56b02a873ed83ce3507eb8d5 (patch)
tree010cc96d70289a0a4f12f7a31cdd6cf8c263ea4d /arch/powerpc/include/asm
parentd3918e7fd4a27564f93ec46d0359a9739c5deb8d (diff)
downloadop-kernel-dev-7ede531773ea69fa56b02a873ed83ce3507eb8d5.zip
op-kernel-dev-7ede531773ea69fa56b02a873ed83ce3507eb8d5.tar.gz
KVM: PPC: Book3S: Move 64-bit KVM interrupt handler out from alt section
A subsequent patch to make KVM handlers relocation-safe makes them unusable from within alt section "else" cases (due to the way fixed addresses are taken from within fixed section head code). Stop open-coding the KVM handlers, and add them both as normal. A more optimal fix may be to allow some level of alternate feature patching in the exception macros themselves, but for now this will do. The TRAMP_KVM handlers must be moved to the "virt" fixed section area (name is arbitrary) in order to be closer to .text and avoid the dreaded "relocation truncated to fit" error. Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Acked-by: Paul Mackerras <paulus@ozlabs.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/include/asm')
-rw-r--r--arch/powerpc/include/asm/head-64.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/include/asm/head-64.h b/arch/powerpc/include/asm/head-64.h
index fca7033..9bd8161 100644
--- a/arch/powerpc/include/asm/head-64.h
+++ b/arch/powerpc/include/asm/head-64.h
@@ -218,7 +218,7 @@ name:
#ifdef CONFIG_KVM_BOOK3S_64_HANDLER
#define TRAMP_KVM_BEGIN(name) \
- TRAMP_REAL_BEGIN(name)
+ TRAMP_VIRT_BEGIN(name)
#else
#define TRAMP_KVM_BEGIN(name)
#endif
OpenPOWER on IntegriCloud