From: Nicholas Piggin <npiggin@gmail.com>
To: linuxppc-dev@lists.ozlabs.org
Cc: Nicholas Piggin <npiggin@gmail.com>
Subject: [PATCH 0/6] KVM: PPC: Book3S: Make LPID/nested LPID allocations dynamic
Date: Sun, 23 Jan 2022 22:00:37 +1000 [thread overview]
Message-ID: <20220123120043.3586018-1-npiggin@gmail.com> (raw)
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(-)
--
2.23.0
next reply other threads:[~2022-01-23 12:01 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-23 12:00 Nicholas Piggin [this message]
2022-01-23 12:00 ` [PATCH 1/6] KVM: PPC: Remove kvmppc_claim_lpid Nicholas Piggin
2022-01-23 12:00 ` [PATCH 2/6] KVM: PPC: Book3S HV: Update LPID allocator init for POWER9, Nested Nicholas Piggin
2022-01-24 22:13 ` Fabiano Rosas
2022-01-23 12:00 ` [PATCH 3/6] KVM: PPC: Book3S HV: Use IDA allocator for LPID allocator Nicholas Piggin
2022-01-24 22:13 ` Fabiano Rosas
2022-01-23 12:00 ` [PATCH 4/6] KVM: PPC: Book3S HV Nested: Change nested guest lookup to use idr Nicholas Piggin
2022-01-24 22:14 ` Fabiano Rosas
2022-01-23 12:00 ` [PATCH 5/6] KVM: PPC: Book3S Nested: Use explicit 4096 LPID maximum Nicholas Piggin
2022-01-24 22:15 ` Fabiano Rosas
2022-01-23 12:00 ` [PATCH 6/6] KVM: PPC: Book3S HV: Remove KVMPPC_NR_LPIDS Nicholas Piggin
2022-01-24 22:15 ` Fabiano Rosas
2022-05-24 10:51 ` [PATCH 0/6] KVM: PPC: Book3S: Make LPID/nested LPID allocations dynamic Michael Ellerman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220123120043.3586018-1-npiggin@gmail.com \
--to=npiggin@gmail.com \
--cc=linuxppc-dev@lists.ozlabs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.