]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: Book3S: Move 64-bit KVM interrupt handler out from alt section
authorNicholas Piggin <npiggin@gmail.com>
Wed, 21 Dec 2016 18:29:26 +0000 (04:29 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 27 Jan 2017 04:41:21 +0000 (15:41 +1100)
commit996e85b246750814e8028cf900e93a51c243638b
tree010cc96d70289a0a4f12f7a31cdd6cf8c263ea4d
parent7c9da9384b84a43245165e1265505690014ce412
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>
arch/powerpc/include/asm/head-64.h
arch/powerpc/kernel/exceptions-64s.S