]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: Book3S HV: Update LPID allocator init for POWER9, Nested
authorNicholas Piggin <npiggin@gmail.com>
Sun, 23 Jan 2022 12:00:39 +0000 (22:00 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 13 May 2022 11:33:33 +0000 (21:33 +1000)
commit6c4bade86bc6ddb2a3636021b383b11b8a854217
tree3f1af91259d27e3c3b07e7400c36fe38207fec5c
parent5a241509cbc52273b1280dfa10974a9762e41fcc
KVM: PPC: Book3S HV: Update LPID allocator init for POWER9, Nested

The LPID allocator init is changed to:
- use mmu_lpid_bits rather than hard-coding;
- use KVM_MAX_NESTED_GUESTS for nested hypervisors;
- not reserve the top LPID on POWER9 and newer CPUs.

The reserved LPID is made a POWER7/8-specific detail.

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-3-npiggin@gmail.com
arch/powerpc/include/asm/kvm_book3s_asm.h
arch/powerpc/include/asm/reg.h
arch/powerpc/kvm/book3s_64_mmu_hv.c
arch/powerpc/kvm/book3s_hv_rmhandlers.S
arch/powerpc/mm/init_64.c