Skip to content

RFC Support POWER8 in HV KVM

Paul Mackerras kvm kvm-ppc 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest10 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10KVM: PPC: Book3S HV: Align physical CPU thread numbers with virtualarch/powerpc/include/asm/kvm_book3s_asm.h arch/powerpc/include/asm/kvm_host.h arch/powerpc/kernel/asm-offsets.c +3 more+192 -610 replies
2/10KVM: PPC: Book3S HV: Don't set DABR on POWER8arch/powerpc/kvm/book3s_hv_interrupts.S arch/powerpc/kvm/book3s_hv_rmhandlers.S+12 -30 replies
3/10KVM: PPC: Book3S HV: Context-switch new POWER8 SPRsarch/powerpc/include/asm/kvm_host.h arch/powerpc/include/asm/reg.h arch/powerpc/include/uapi/asm/kvm.h +3 more+360 -30 replies
4/10KVM: PPC: Book3S HV: Flush the correct number of TLB sets on POWER8arch/powerpc/kvm/book3s_hv_rmhandlers.S+7 -10 replies
5/10KVM: PPC: Book3S HV: Add handler for HV facility unavailablearch/powerpc/include/asm/kvm_asm.h arch/powerpc/kvm/book3s_hv.c+10 -01 reply
6/10KVM: PPC: Book3S HV: Implement architecture compatibility modes for POWER8arch/powerpc/include/asm/reg.h arch/powerpc/kvm/book3s_hv.c+17 -14 replies
7/10KVM: PPC: Book3S HV: Consolidate code that checks reason for wake from naparch/powerpc/kvm/book3s_hv_rmhandlers.S+78 -1150 replies
8/10KVM: PPC: Book3S HV: Handle guest using doorbells for IPIsarch/powerpc/include/asm/reg.h arch/powerpc/kvm/book3s_hv_rmhandlers.S+18 -50 replies
9/10KVM: PPC: Book3S HV: Handle new LPCR bits on POWER8arch/powerpc/include/asm/reg.h arch/powerpc/kvm/book3s_hv.c+8 -00 replies
10/10KVM: PPC: Book3S HV: Prepare for host using hypervisor doorbellsarch/powerpc/include/asm/kvm_asm.h arch/powerpc/kvm/book3s_hv.c arch/powerpc/kvm/book3s_hv_rmhandlers.S+9 -00 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/10] Support POWER8 in HV KVM

This series adds support for the POWER8 CPU in HV KVM. POWER8 adds several new guest-accessible instructions, special-purpose registers, and other features such as doorbell interrupts and hardware transactional memory. It also adds new hypervisor-controlled features such as relocation-on interrupts, and replaces the DABR/DABRX registers with the new DAWR/DAWRX registers with expanded capabilities. The POWER8 CPU has compatibility modes for architecture 2.06 (POWER7/POWER7+) and 2.05 (POWER6).

This series does not yet handle the checkpointed register state of the guest.

 arch/powerpc/include/asm/kvm_asm.h        |   2 +
 arch/powerpc/include/asm/kvm_book3s_asm.h |   1 +
 arch/powerpc/include/asm/kvm_host.h       |  29 +-
 arch/powerpc/include/asm/reg.h            |  25 +-
 arch/powerpc/include/uapi/asm/kvm.h       |   1 +
 arch/powerpc/kernel/asm-offsets.c         |  28 +-
 arch/powerpc/kvm/book3s_hv.c              | 234 +++++++++++--
 arch/powerpc/kvm/book3s_hv_interrupts.S   |   8 +-
 arch/powerpc/kvm/book3s_hv_rmhandlers.S   | 538 ++++++++++++++++++++++--------
 9 files changed, 694 insertions(+), 172 deletions(-)

Paul.