]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: Make long relocations be ulong
authorAlexander Graf <agraf@suse.de>
Thu, 29 Jul 2010 13:04:21 +0000 (15:04 +0200)
committerAvi Kivity <avi@redhat.com>
Sun, 24 Oct 2010 08:50:59 +0000 (10:50 +0200)
commit5764ccfe80e24c33f19ca77d62a999b539c03dd3
tree5bb5ec2e1a6452d162f1aee72f296184686ce5d6
parenta50fc9b6221aac62e10c9e931d4c0f32dc56a1ad
KVM: PPC: Make long relocations be ulong

On Book3S KVM we directly expose some asm pointers to C code as
variables. These need to be relocated and thus break on relocatable
kernels.

To make sure we can at least build, let's mark them as long instead
of u32 where 64bit relocations don't work.

This fixes the following build error:

WARNING: 2 bad relocations^M
c000000000008590 R_PPC64_ADDR32    .text+0x4000000000008460^M
c000000000008594 R_PPC64_ADDR32    .text+0x4000000000008598^M

Please keep in mind that actually using KVM on a relocated kernel
might still break. This only fixes the compile problem.

Reported-by: Subrata Modak <subrata@linux.vnet.ibm.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/powerpc/include/asm/kvm_book3s.h
arch/powerpc/kvm/book3s_rmhandlers.S