KVM: PPC: Book3S: Move vcore definition to end of kvm_arch struct
authorAlexander Graf <agraf@suse.de>
Fri, 4 Jul 2014 10:52:51 +0000 (12:52 +0200)
committerAlexander Graf <agraf@suse.de>
Mon, 28 Jul 2014 13:22:27 +0000 (15:22 +0200)
commit1287cb3fa85cd4a0d18402f6a23e1d4c6a9d7b8b
tree65c060472a549a379a4d0e88d32c8dfd8cc51bab
parentdebf27d6b92d7a98e0153ca8e3a990ea7a45b4da
KVM: PPC: Book3S: Move vcore definition to end of kvm_arch struct

When building KVM with a lot of vcores (NR_CPUS is big), we can potentially
get out of the ld immediate range for dereferences inside that struct.

Move the array to the end of our kvm_arch struct. This fixes compilation
issues with NR_CPUS=2048 for me.

Signed-off-by: Alexander Graf <agraf@suse.de>
arch/powerpc/include/asm/kvm_host.h