]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: Remove kvmppc_claim_lpid
authorNicholas Piggin <npiggin@gmail.com>
Sun, 23 Jan 2022 12:00:38 +0000 (22:00 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 13 May 2022 11:33:33 +0000 (21:33 +1000)
commit5a241509cbc52273b1280dfa10974a9762e41fcc
tree295a4eee4ddc6db4a89ccbd6d4c15fd0673e5ec9
parent1f6ef163f9aecee345ed4f0c380e0a04ae194e47
KVM: PPC: Remove kvmppc_claim_lpid

Removing kvmppc_claim_lpid makes the lpid allocator API a bit simpler to
change the underlying implementation in a future patch.

The host LPID is always 0, so that can be a detail of the allocator. If
the allocator range is restricted, that can reserve LPIDs at the top of
the range. This allows kvmppc_claim_lpid to be removed.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220123120043.3586018-2-npiggin@gmail.com
arch/powerpc/include/asm/kvm_ppc.h
arch/powerpc/kvm/book3s_64_mmu_hv.c
arch/powerpc/kvm/e500mc.c
arch/powerpc/kvm/powerpc.c