summaryrefslogtreecommitdiff
path: root/arch/powerpc/kvm
diff options
context:
space:
mode:
authorNicholas Piggin <npiggin@gmail.com>2022-01-23 15:00:43 +0300
committerMichael Ellerman <mpe@ellerman.id.au>2022-05-13 14:33:34 +0300
commitf104df7d519ff1aa92c7ec87e124c88d4e7574cd (patch)
tree666c070143cd230f615e634b94d6f13d99efa529 /arch/powerpc/kvm
parent03a2e65f54b3acae37f0992133d2f4d1d35f4200 (diff)
downloadlinux-f104df7d519ff1aa92c7ec87e124c88d4e7574cd.tar.xz
KVM: PPC: Book3S HV: Remove KVMPPC_NR_LPIDS
KVMPPC_NR_LPIDS no longer represents any size restriction on the LPID space and can be removed. A CPU with more than 12 LPID bits implemented will now be able to create more than 4095 guests. Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Reviewed-by: Fabiano Rosas <farosas@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20220123120043.3586018-7-npiggin@gmail.com
Diffstat (limited to 'arch/powerpc/kvm')
-rw-r--r--arch/powerpc/kvm/book3s_64_mmu_hv.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/powerpc/kvm/book3s_64_mmu_hv.c b/arch/powerpc/kvm/book3s_64_mmu_hv.c
index a2254390e74b..f622a39d64e0 100644
--- a/arch/powerpc/kvm/book3s_64_mmu_hv.c
+++ b/arch/powerpc/kvm/book3s_64_mmu_hv.c
@@ -269,9 +269,6 @@ int kvmppc_mmu_hv_init(void)
nr_lpids = 1UL << KVM_MAX_NESTED_GUESTS_SHIFT;
}
- if (nr_lpids > KVMPPC_NR_LPIDS)
- nr_lpids = KVMPPC_NR_LPIDS;
-
if (!cpu_has_feature(CPU_FTR_ARCH_300)) {
/* POWER7 has 10-bit LPIDs, POWER8 has 12-bit LPIDs */
if (cpu_has_feature(CPU_FTR_ARCH_207S))