KVM: PPC: Book3S HV: Increase KVMPPC_NR_LPIDS on POWER8 and POWER9
authorCédric Le Goater <clg@kaod.org>
Mon, 8 Jun 2020 11:57:14 +0000 (13:57 +0200)
committerPaul Mackerras <paulus@ozlabs.org>
Tue, 21 Jul 2020 05:38:03 +0000 (15:38 +1000)
commite55f4d5898a9855350834535037f62732bbd320a
tree9c4654f6122b302c86099ab3dffb5b7898bc6a61
parent4cb4ade19b4219af8f5cda9313dd99b0004c8b3c
KVM: PPC: Book3S HV: Increase KVMPPC_NR_LPIDS on POWER8 and POWER9

POWER8 and POWER9 have 12-bit LPIDs. Change LPID_RSVD to support up to
(4096 - 2) guests on these processors. POWER7 is kept the same with a
limitation of (1024 - 2), but it might be time to drop KVM support for
POWER7.

Tested with 2048 guests * 4 vCPUs on a witherspoon system with 512G
RAM and a bit of swap.

Signed-off-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
arch/powerpc/include/asm/reg.h
arch/powerpc/kvm/book3s_64_mmu_hv.c