]> Pileus Git - ~andy/linux/blobdiff - arch/powerpc/include/asm/kvm_booke.h
KVM: PPC: factor out lpid allocator from book3s_64_mmu_hv
[~andy/linux] / arch / powerpc / include / asm / kvm_booke.h
index a90e0918877738180a3f08574900b983cabfdf03..b7cd3356a532d7c76d53dd9e1c418c40adb35275 100644 (file)
@@ -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;