Skip to content

KVM: PPC: Unify FP/VMX/VSX state handling between KVM and main kernel

Paul Mackerras kvm kvm-ppc 1 version Applied

Status from this message: Thanks, applied all to kvm-ppc-queue.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/4KVM: PPC: Use load_fp/vr_state rather than load_up_fpu/altivecarch/powerpc/include/asm/kvm_book3s.h arch/powerpc/include/asm/switch_to.h arch/powerpc/kvm/book3s_exports.c +3 more+14 -630 replies
2/4KVM: PPC: Store FP/VSX/VMX state in thread_fp/vr_state structuresarch/powerpc/include/asm/kvm_host.h arch/powerpc/kernel/asm-offsets.c arch/powerpc/kvm/book3s.c +6 more+131 -2200 replies
3/4KVM: PPC: Load/save FP/VMX/VSX state directly to/from vcpu structarch/powerpc/kvm/book3s_pr.c arch/powerpc/kvm/booke.c arch/powerpc/kvm/booke.h+19 -730 replies
4/4KVM: PPC: Book3S HV: Use load/store_fp_state functions in HV guest entry/exitarch/powerpc/kernel/asm-offsets.c arch/powerpc/kvm/book3s_hv_rmhandlers.S+22 -660 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/4] KVM: PPC: Unify FP/VMX/VSX state handling between KVM and main kernel

This series makes use of the new thread_fp_state and thread_vr_state structures to unify the way that floating-point and vector state is handled. With both KVM and the main kernel using the same structures to store this state for various contexts, we can reduce the amount of code for loading and storing this state and also eliminate some extra copies. Overall, this series removes a net 240 lines of code.

This series also provides the foundation for implementing support for POWER8 transactional memory in KVM.

These patches are against the merge of Ben Herrenschmidt's for-kvm branch and Alex Graf's kvm-ppc-queue branch.

Paul.

---
 arch/powerpc/include/asm/kvm_book3s.h    |   3 -
 arch/powerpc/include/asm/kvm_host.h      |  12 +--
 arch/powerpc/include/asm/switch_to.h     |   2 -
 arch/powerpc/kernel/asm-offsets.c        |   9 +-
 arch/powerpc/kvm/book3s.c                |  38 +++++--
 arch/powerpc/kvm/book3s_exports.c        |   4 -
 arch/powerpc/kvm/book3s_hv.c             |  42 --------
 arch/powerpc/kvm/book3s_hv_rmhandlers.S  |  82 ++++-----------
 arch/powerpc/kvm/book3s_paired_singles.c | 169 +++++++++++++++----------------
 arch/powerpc/kvm/book3s_pr.c             | 137 +++++--------------------
 arch/powerpc/kvm/book3s_rmhandlers.S     |  47 ---------
 arch/powerpc/kvm/booke.c                 |  20 ----
 arch/powerpc/kvm/booke.h                 |   5 +-
 arch/powerpc/kvm/powerpc.c               |   4 +-
 14 files changed, 167 insertions(+), 407 deletions(-)