Skip to content

Support POWER8 and little-endian guests 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 Latest15 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/15KVM: 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+193 -610 replies
2/15KVM: 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/15KVM: 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+361 -30 replies
4/15KVM: PPC: Book3S HV: Flush the correct number of TLB sets on POWER8arch/powerpc/kvm/book3s_hv_rmhandlers.S+7 -10 replies
5/15KVM: PPC: Book3S HV: Add handler for HV facility unavailablearch/powerpc/include/asm/kvm_asm.h arch/powerpc/kvm/book3s_hv.c+11 -10 replies
6/15KVM: PPC: Book3S HV: Implement architecture compatibility modes for POWER8arch/powerpc/include/asm/reg.h arch/powerpc/kvm/book3s_hv.c+17 -10 replies
7/15KVM: PPC: Book3S HV: Consolidate code that checks reason for wake from naparch/powerpc/kvm/book3s_hv_rmhandlers.S+78 -1150 replies
8/15KVM: 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/15KVM: PPC: Book3S HV: Handle new LPCR bits on POWER8arch/powerpc/include/asm/reg.h arch/powerpc/kvm/book3s_hv.c+8 -00 replies
10/15KVM: 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
11/15KVM: PPC: Book3S HV: Add little-endian guest supportarch/powerpc/include/asm/hvcall.h arch/powerpc/include/asm/kvm_host.h arch/powerpc/include/asm/kvm_ppc.h +4 more+64 -92 replies
12/15KVM: PPC: Book3S HV: Add H_SET_MODE address translation settingarch/powerpc/include/asm/reg.h arch/powerpc/kvm/book3s_hv.c+31 -00 replies
13/15KVM: PPC: Book3S HV: Add H_SET_MODE DAWR/X settingarch/powerpc/kvm/book3s_hv.c+10 -00 replies
14/15KVM: PPC: Book3S HV: Add H_SET_MODE CIABR settingarch/powerpc/kvm/book3s_hv.c+11 -00 replies
15/15KVM: PPC: Book3S HV: Add support for DABRX register on POWER7Documentation/virtual/kvm/api.txt arch/powerpc/include/asm/kvm_host.h arch/powerpc/include/asm/reg.h +4 more+52 -90 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 00/15] Support POWER8 and little-endian guests in HV KVM

This patch series adds basic POWER8 support and support for little-endian guests to HV KVM. The last patch implements support for the H_SET_XDABR hcall for POWER7 guests. The series is against the 'next' branch of the kvm tree as of a couple of days ago, plus the two bug-fix patches I posted recently ("Fix physical address calculations" and "Refine barriers in guest entry/exit").

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 include the support for saving and restoring the transactional checkpointed state of the guest. For that, I need Ben's for-kvm branch to be merged to bring in the "powerpc: Put FP/VSX and VR state into structures" patch.

Paul.
---

 Documentation/virtual/kvm/api.txt         |   1 +
 arch/powerpc/include/asm/hvcall.h         |   6 +
 arch/powerpc/include/asm/kvm_asm.h        |   2 +
 arch/powerpc/include/asm/kvm_book3s_asm.h |   1 +
 arch/powerpc/include/asm/kvm_host.h       |  31 +-
 arch/powerpc/include/asm/kvm_ppc.h        |   2 +
 arch/powerpc/include/asm/reg.h            |  44 ++-
 arch/powerpc/include/uapi/asm/kvm.h       |   3 +
 arch/powerpc/kernel/asm-offsets.c         |  30 +-
 arch/powerpc/kvm/book3s_64_mmu_hv.c       |   2 +-
 arch/powerpc/kvm/book3s_hv.c              | 342 ++++++++++++++++--
 arch/powerpc/kvm/book3s_hv_interrupts.S   |   8 +-
 arch/powerpc/kvm/book3s_hv_rmhandlers.S   | 580 ++++++++++++++++++++++--------
 13 files changed, 863 insertions(+), 189 deletions(-)