Support POWER8 and little-endian guests in HV KVM
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest15 patches 2 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/15 | KVM: PPC: Book3S HV: Align physical CPU thread numbers with virtualarch/ arch/ arch/ +3 more | +193 | 0 replies | |
| 2/15 | KVM: PPC: Book3S HV: Don't set DABR on POWER8arch/ arch/ | +12 | 0 replies | |
| 3/15 | KVM: PPC: Book3S HV: Context-switch new POWER8 SPRsarch/ arch/ arch/ +3 more | +361 | 0 replies | |
| 4/15 | KVM: PPC: Book3S HV: Flush the correct number of TLB sets on POWER8arch/ | +7 | 0 replies | |
| 5/15 | KVM: PPC: Book3S HV: Add handler for HV facility unavailablearch/ arch/ | +11 | 0 replies | |
| 6/15 | KVM: PPC: Book3S HV: Implement architecture compatibility modes for POWER8arch/ arch/ | +17 | 0 replies | |
| 7/15 | KVM: PPC: Book3S HV: Consolidate code that checks reason for wake from naparch/ | +78 | 0 replies | |
| 8/15 | KVM: PPC: Book3S HV: Handle guest using doorbells for IPIsarch/ arch/ | +18 | 0 replies | |
| 9/15 | KVM: PPC: Book3S HV: Handle new LPCR bits on POWER8arch/ arch/ | +8 | 0 replies | |
| 10/15 | KVM: PPC: Book3S HV: Prepare for host using hypervisor doorbellsarch/ arch/ arch/ | +9 | 0 replies | |
| 11/15 | KVM: PPC: Book3S HV: Add little-endian guest supportarch/ arch/ arch/ +4 more | +64 | 2 replies | |
| 12/15 | KVM: PPC: Book3S HV: Add H_SET_MODE address translation settingarch/ arch/ | +31 | 0 replies | |
| 13/15 | KVM: PPC: Book3S HV: Add H_SET_MODE DAWR/X settingarch/ | +10 | 0 replies | |
| 14/15 | KVM: PPC: Book3S HV: Add H_SET_MODE CIABR settingarch/ | +11 | 0 replies | |
| 15/15 | KVM: PPC: Book3S HV: Add support for DABRX register on POWER7Documentation/ arch/ arch/ +4 more | +52 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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(-)