diff options
author | Scott Wood <scottwood@freescale.com> | 2011-12-20 10:34:20 -0500 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2012-04-08 05:51:02 -0400 |
commit | 043cc4d724da6bb9e4f417c735accec58dfa40bf (patch) | |
tree | fa2d40741f8dcd636bb0c74f98f87cb88e6a2be4 /arch/powerpc/include/asm/kvm_booke.h | |
parent | 06aae86799c1b37f216371e05a1eacb2188bee9d (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.h | 3 |
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 @@ | |||
23 | #include <linux/types.h> | 23 | #include <linux/types.h> |
24 | #include <linux/kvm_host.h> | 24 | #include <linux/kvm_host.h> |
25 | 25 | ||
26 | /* LPIDs we support with this build -- runtime limit may be lower */ | ||
27 | #define KVMPPC_NR_LPIDS 64 | ||
28 | |||
26 | static inline void kvmppc_set_gpr(struct kvm_vcpu *vcpu, int num, ulong val) | 29 | static inline void kvmppc_set_gpr(struct kvm_vcpu *vcpu, int num, ulong val) |
27 | { | 30 | { |
28 | vcpu->arch.gpr[num] = val; | 31 | vcpu->arch.gpr[num] = val; |