aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/exceptions-64s.S
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2010-07-29 15:04:22 +0200
committerAvi Kivity <avi@redhat.com>2010-10-24 10:50:59 +0200
commita58ddea556f8877ccf7caa046b6d6b32982f5b1d (patch)
tree6642aef5386958f7b36e857742e1a03ad164b578 /arch/powerpc/kernel/exceptions-64s.S
parent2b05d71fefc3b83e686bead355c6d35e440c4261 (diff)
downloadkernel_samsung_smdk4412-a58ddea556f8877ccf7caa046b6d6b32982f5b1d.zip
kernel_samsung_smdk4412-a58ddea556f8877ccf7caa046b6d6b32982f5b1d.tar.gz
kernel_samsung_smdk4412-a58ddea556f8877ccf7caa046b6d6b32982f5b1d.tar.bz2
KVM: PPC: Move KVM trampolines before __end_interrupts
When using a relocatable kernel we need to make sure that the trampline code and the interrupt handlers are both copied to low memory. The only way to do this reliably is to put them in the copied section. This patch should make relocated kernels work with KVM. KVM-Stable-Tag Signed-off-by: Alexander Graf <agraf@suse.de> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/powerpc/kernel/exceptions-64s.S')
-rw-r--r--arch/powerpc/kernel/exceptions-64s.S6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/exceptions-64s.S b/arch/powerpc/kernel/exceptions-64s.S
index f53029a..1667a07 100644
--- a/arch/powerpc/kernel/exceptions-64s.S
+++ b/arch/powerpc/kernel/exceptions-64s.S
@@ -299,6 +299,12 @@ slb_miss_user_pseries:
b . /* prevent spec. execution */
#endif /* __DISABLED__ */
+/* KVM's trampoline code needs to be close to the interrupt handlers */
+
+#ifdef CONFIG_KVM_BOOK3S_64_HANDLER
+#include "../kvm/book3s_rmhandlers.S"
+#endif
+
.align 7
.globl __end_interrupts
__end_interrupts: