Skip to content

RFC KVM: PPC: Book3S HV P9: Reduce guest entry/exit

Nicholas Piggin kvm-ppc linuxppc-dev 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest6 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6KVM: PPC: Book3S HV P9: Add unlikely annotation for !mmu_readyarch/powerpc/kvm/book3s_hv.c+1 -10 replies
2/6KVM: PPC: Book3S HV P9: Avoid cpu_in_guest atomics on entry and exitarch/powerpc/include/asm/kvm_book3s_64.h arch/powerpc/include/asm/kvm_host.h arch/powerpc/kvm/book3s_hv.c+21 -190 replies
3/6KVM: PPC: Book3S HV P9: Remove most of the vcore logicarch/powerpc/kvm/book3s_hv.c+85 -620 replies
4/6KVM: PPC: Book3S HV P9: Tidy kvmppc_create_dtl_entryarch/powerpc/kvm/book3s_hv.c+35 -260 replies
5/6KVM: PPC: Book3S HV P9: Stop using vc->dpdesarch/powerpc/kvm/book3s_hv.c arch/powerpc/kvm/book3s_hv_builtin.c arch/powerpc/kvm/book3s_hv_p9_entry.c+22 -120 replies
6/6KVM: PPC: Book3S HV P9: Remove subcore HMI handlingarch/powerpc/kvm/book3s_hv.c arch/powerpc/kvm/book3s_hv_hmi.c arch/powerpc/kvm/book3s_hv_p9_entry.c +1 more+35 -90 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/6] KVM: PPC: Book3S HV P9: Reduce guest entry/exit

This goes on top of the previous speedup series. The previous series is mostly invovled with reducing the cost of SPR accesses. This one starts to look beyond those, to atomics, barriers, and other logic that can be reduced. After this series the P9 path uses very few things from the vcore structure. This saves several hundred cycles for guest entry/exit on a POWER9.

Thanks,
Nick

Nicholas Piggin (6):
KVM: PPC: Book3S HV P9: Add unlikely annotation for !mmu_ready
KVM: PPC: Book3S HV P9: Avoid cpu_in_guest atomics on entry and exit
KVM: PPC: Book3S HV P9: Remove most of the vcore logic
KVM: PPC: Book3S HV P9: Tidy kvmppc_create_dtl_entry
KVM: PPC: Book3S HV P9: Stop using vc->dpdes
KVM: PPC: Book3S HV P9: Remove subcore HMI handling

 arch/powerpc/include/asm/kvm_book3s_64.h |   1 -
 arch/powerpc/include/asm/kvm_host.h      |   1 -
 arch/powerpc/kvm/book3s_hv.c             | 250 +++++++++++++----------
 arch/powerpc/kvm/book3s_hv_builtin.c     |   2 +
 arch/powerpc/kvm/book3s_hv_hmi.c         |   7 +-
 arch/powerpc/kvm/book3s_hv_p9_entry.c    |  35 +++-
 arch/powerpc/kvm/book3s_hv_ras.c         |   4 +
 7 files changed, 185 insertions(+), 115 deletions(-)
Signature · 1 line
2.23.0