Skip to content

KVM: PPC: Book3S: Make LPID/nested LPID allocations dynamic

Nicholas Piggin linuxppc-dev 1 version Applied

Status from this message: Applied to powerpc/topic/ppc-kvm.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 6 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/6KVM: PPC: Remove kvmppc_claim_lpidarch/powerpc/include/asm/kvm_ppc.h arch/powerpc/kvm/book3s_64_mmu_hv.c arch/powerpc/kvm/e500mc.c +1 more+7 -160 replies
2/6KVM: PPC: Book3S HV: Update LPID allocator init for POWER9, Nestedarch/powerpc/include/asm/kvm_book3s_asm.h arch/powerpc/include/asm/reg.h arch/powerpc/kvm/book3s_64_mmu_hv.c +2 more+33 -111 reply
3/6KVM: PPC: Book3S HV: Use IDA allocator for LPID allocatorarch/powerpc/kvm/powerpc.c+13 -121 reply
4/6KVM: PPC: Book3S HV Nested: Change nested guest lookup to use idrarch/powerpc/include/asm/kvm_host.h arch/powerpc/kvm/book3s_hv_nested.c+59 -541 reply
5/6KVM: PPC: Book3S Nested: Use explicit 4096 LPID maximumarch/powerpc/include/asm/kvm_host.h arch/powerpc/kvm/book3s_64_mmu_hv.c arch/powerpc/kvm/book3s_hv_nested.c+18 -151 reply
6/6KVM: PPC: Book3S HV: Remove KVMPPC_NR_LPIDSarch/powerpc/include/asm/kvm_book3s_asm.h arch/powerpc/kvm/book3s_64_mmu_hv.c+0 -61 reply

Reviews trailers per patch

5 of 6 patches have a Reviewed-by or Acked-by.

PatchNicholas PigginFabiano Rosas
1/6
2/6R-b
3/6R-b
4/6R-b
5/6Signed-of-by R-b
6/6R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/6] KVM: PPC: Book3S: Make LPID/nested LPID allocations dynamic

With LPID width plumbed through from firmware, LPID allocations can now be dynamic, which requires changing the fixed sized bitmap. Rather than just dynamically sizing it, switch to IDA allocator.

Nested KVM stays with a fixed 12-bit LPID width for now, but it is also moved to a more dynamic allocator. In future if nested LPID width is advertised to a guest it will be simple to take advantage of it.

Thanks,
Nick

Nicholas Piggin (6):
KVM: PPC: Remove kvmppc_claim_lpid
KVM: PPC: Book3S HV: Update LPID allocator init for POWER9, Nested
KVM: PPC: Book3S HV: Use IDA allocator for LPID allocator
KVM: PPC: Book3S HV Nested: Change nested guest lookup to use idr
KVM: PPC: Book3S Nested: Use explicit 4096 LPID maximum
KVM: PPC: Book3S HV: Remove KVMPPC_NR_LPIDS

 arch/powerpc/include/asm/kvm_book3s_asm.h |   3 -
 arch/powerpc/include/asm/kvm_host.h       |  10 +-
 arch/powerpc/include/asm/kvm_ppc.h        |   1 -
 arch/powerpc/include/asm/reg.h            |   2 -
 arch/powerpc/kvm/book3s_64_mmu_hv.c       |  34 +++---
 arch/powerpc/kvm/book3s_hv_nested.c       | 134 +++++++++++-----------
 arch/powerpc/kvm/book3s_hv_rmhandlers.S   |   8 ++
 arch/powerpc/kvm/e500mc.c                 |   1 -
 arch/powerpc/kvm/powerpc.c                |  30 +++--
 arch/powerpc/mm/init_64.c                 |   3 +
 10 files changed, 121 insertions(+), 105 deletions(-)
Signature · 1 line
2.23.0