Skip to content

KVM: PPC: Book3S HV: Enable on little endian hosts

Alexander Graf kvm kvm-ppc 1 version Applied

Status from this message: Applied to kvm-ppc-queue.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 3 repliesApplied

v1 -> v2 from the cover letter

- fix typo in STWX_BE
- Add __be hints
- Fix H_REMOVE
- Fix dtl_idx
- Make XICS code easier to follow and use memory for bswap

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/7PPC: Add asm helpers for BE 32bit load/storearch/powerpc/include/asm/asm-compat.h+4 -00 replies
2/7KVM: PPC: Book3S HV: Make HTAB code LE host awarearch/powerpc/include/asm/kvm_book3s.h arch/powerpc/include/asm/kvm_book3s_64.h arch/powerpc/kvm/book3s_64_mmu_hv.c +1 more+164 -1290 replies
3/7KVM: PPC: Book3S HV: Access guest VPA in BEarch/powerpc/kvm/book3s_hv.c arch/powerpc/kvm/book3s_hv_ras.c+14 -140 replies
4/7KVM: PPC: Book3S HV: Access host lppaca and shadow slb in BEarch/powerpc/kvm/book3s_hv_rmhandlers.S+10 -100 replies
5/7KVM: PPC: Book3S HV: Access XICS in BEarch/powerpc/kvm/book3s_hv_rmhandlers.S+14 -40 replies
6/7KVM: PPC: Book3S HV: Fix ABIv2 on LEarch/powerpc/kvm/book3s_hv_rmhandlers.S+14 -83 replies
7/7KVM: PPC: Book3S HV: Enable for little endian hostsarch/powerpc/kvm/Kconfig+0 -10 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/7] KVM: PPC: Book3S HV: Enable on little endian hosts

So far we've been able to successfully run HV KVM on big endian hosts, but once you dive into little endian land things start to fall apart.

This patch set enables HV KVM for little endian hosts. This should be the final piece left missing to get little endian systems fully en par with big endian ones in the KVM world - modulo bugs.

For now guest threading support is still slightly flaky, but I'm sure that's only a minor breakage somewhere that we'll find soon.

v1 -> v2:

- fix typo in STWX_BE
- Add __be hints
- Fix H_REMOVE
- Fix dtl_idx
- Make XICS code easier to follow and use memory for bswap

Alex

Alexander Graf (7):
PPC: Add asm helpers for BE 32bit load/store
KVM: PPC: Book3S HV: Make HTAB code LE host aware
KVM: PPC: Book3S HV: Access guest VPA in BE
KVM: PPC: Book3S HV: Access host lppaca and shadow slb in BE
KVM: PPC: Book3S HV: Access XICS in BE
KVM: PPC: Book3S HV: Fix ABIv2 on LE
KVM: PPC: Book3S HV: Enable for little endian hosts

 arch/powerpc/include/asm/asm-compat.h    |   4 +
 arch/powerpc/include/asm/kvm_book3s.h    |   4 +-
 arch/powerpc/include/asm/kvm_book3s_64.h |  15 +++-
 arch/powerpc/kvm/Kconfig                 |   1 -
 arch/powerpc/kvm/book3s_64_mmu_hv.c      | 128 ++++++++++++++-------------
 arch/powerpc/kvm/book3s_hv.c             |  22 ++---
 arch/powerpc/kvm/book3s_hv_ras.c         |   6 +-
 arch/powerpc/kvm/book3s_hv_rm_mmu.c      | 146 ++++++++++++++++++-------------
 arch/powerpc/kvm/book3s_hv_rmhandlers.S  |  60 ++++++++-----
 9 files changed, 220 insertions(+), 166 deletions(-)
Signature · 1 line
1.8.1.4