summaryrefslogtreecommitdiff
path: root/arch/powerpc/include/asm/kvm_booke.h
diff options
context:
space:
mode:
authorScott Wood <scottwood@freescale.com>2011-12-20 15:34:20 +0000
committerAvi Kivity <avi@redhat.com>2012-04-08 12:51:02 +0300
commit043cc4d724da6bb9e4f417c735accec58dfa40bf (patch)
treefa2d40741f8dcd636bb0c74f98f87cb88e6a2be4 /arch/powerpc/include/asm/kvm_booke.h
parent06aae86799c1b37f216371e05a1eacb2188bee9d (diff)
KVM: PPC: factor out lpid allocator from book3s_64_mmu_hv
We'll use it on e500mc as well. Signed-off-by: Scott Wood <scottwood@freescale.com> Signed-off-by: Alexander Graf <agraf@suse.de> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/powerpc/include/asm/kvm_booke.h')
-rw-r--r--arch/powerpc/include/asm/kvm_booke.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/kvm_booke.h b/arch/powerpc/include/asm/kvm_booke.h
index a90e09188777..b7cd3356a532 100644
--- a/arch/powerpc/include/asm/kvm_booke.h
+++ b/arch/powerpc/include/asm/kvm_booke.h
@@ -23,6 +23,9 @@
#include <linux/types.h>
#include <linux/kvm_host.h>
+/* LPIDs we support with this build -- runtime limit may be lower */
+#define KVMPPC_NR_LPIDS 64
+
static inline void kvmppc_set_gpr(struct kvm_vcpu *vcpu, int num, ulong val)
{
vcpu->arch.gpr[num] = val;