Skip to content

KVM: PPC: Convert P9 HV path to C

Nicholas Piggin kvm-ppc linuxppc-dev 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4KVM: PPC: Book3S HV P9: Move xive vcpu context management into kvmhv_p9_guest_entryarch/powerpc/kvm/book3s_hv.c+3 -40 replies
2/4KVM: PPC: Book3S HV P9: Move radix MMU switching instructions togetherarch/powerpc/kvm/book3s_hv.c+41 -210 replies
3/4KVM: PPC: Book3S HV P9: Stop handling hcalls in real-mode in the P9 patharch/powerpc/include/asm/kvm_ppc.h arch/powerpc/kvm/book3s.c arch/powerpc/kvm/book3s_hv.c +2 more+149 -110 replies
4/4KVM: PPC: Book3S HV P9: Implement the rest of the P9 path in Carch/powerpc/include/asm/asm-prototypes.h arch/powerpc/include/asm/kvm_asm.h arch/powerpc/include/asm/kvm_book3s_64.h +7 more+496 -1240 replies

Reviews trailers per patch

3 of 4 patches have a Reviewed-by or Acked-by.

PatchAlexey KardashevskiyCédric Le Goater
1/4R-b
2/4R-b
3/4R-b R-b
4/4

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/4] KVM: PPC: Convert P9 HV path to C

This applies on top of these series:

https://patchwork.ozlabs.org/project/linuxppc-dev/list/?series#8649
https://patchwork.ozlabs.org/project/linuxppc-dev/list/?series#8941
https://patchwork.ozlabs.org/project/linuxppc-dev/list/?series#8946

This was broken out from the large Cify series. Since that was last posted, changes are:

- Rebase, reordering of patches, tweaking changelog and comments.
- Changed P9 radix exist SLB sanitising to use 4x slbmte to clear rather than 8x slbmfee/slbmfev, which turns out to be faster (and is what today's asm code does) [from review from Paul].
- Renamed book3s_hv_interrupt.c to book3s_hv_p9_entry.c, which reduces confusion with book3s_hv_interrupts.S.
- Fixed !HV compile [Alexey].

Nicholas Piggin (4):
KVM: PPC: Book3S HV P9: Move xive vcpu context management into
kvmhv_p9_guest_entry
KVM: PPC: Book3S HV P9: Move radix MMU switching instructions together
KVM: PPC: Book3S HV P9: Stop handling hcalls in real-mode in the P9
path
KVM: PPC: Book3S HV P9: Implement the rest of the P9 path in C

 arch/powerpc/include/asm/asm-prototypes.h |   3 +-
 arch/powerpc/include/asm/kvm_asm.h        |   1 +
 arch/powerpc/include/asm/kvm_book3s_64.h  |   8 +
 arch/powerpc/include/asm/kvm_host.h       |   7 +-
 arch/powerpc/include/asm/kvm_ppc.h        |   6 +
 arch/powerpc/kernel/security.c            |   5 +-
 arch/powerpc/kvm/Makefile                 |   1 +
 arch/powerpc/kvm/book3s.c                 |   6 +
 arch/powerpc/kvm/book3s_64_entry.S        | 254 ++++++++++++++++++++++
 arch/powerpc/kvm/book3s_hv.c              | 155 +++++++++----
 arch/powerpc/kvm/book3s_hv_p9_entry.c     | 207 ++++++++++++++++++
 arch/powerpc/kvm/book3s_hv_rmhandlers.S   | 120 +---------
 arch/powerpc/kvm/book3s_xive.c            |  64 ++++++
 13 files changed, 683 insertions(+), 154 deletions(-)
 create mode 100644 arch/powerpc/kvm/book3s_hv_p9_entry.c
Signature · 1 line
2.23.0