KVM: PPC: Virtualize Gekko guests
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest9 of 18 patches 26 repliesIn review
9 of 18 patches are in this archive. The cover letter announces 18.
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/18 | KVM: PPC: Add QPR registersarch/ | +5 | 0 replies | |
| 7/18 | KVM: PPC: Combine extension interrupt handlersarch/ | +50 | 0 replies | |
| 8/18 | KVM: PPC: Preload FPU when possiblearch/ | +8 | 0 replies | |
| 9/18 | KVM: PPC: Fix typo in book3s_32 debug codearch/ | +1 | 0 replies | |
| 10/18 | KVM: PPC: Implement mtsr instruction emulationarch/ | +6 | 0 replies | |
| 11/18 | KVM: PPC: Make software load/store return eaddrarch/ arch/ arch/ | +33 | 0 replies | |
| 13/18 | KVM: PPC: Add helpers to call FPU instructionsarch/ arch/ arch/ +1 more | +125 | 0 replies | |
| 17/18 | KVM: PPC: Reserve a chunk of memory for opcodesarch/ arch/ arch/ | +18 | 0 replies | |
| 18/18 | KVM: PPC: Implement Paired Single emulationarch/ arch/ arch/ +1 more | +1361 | 3 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 00/18] KVM: PPC: Virtualize Gekko guests
In an effort to get KVM on PPC more useful for other userspace users than Qemu, I figured it'd be a nice idea to implement virtualization of the Gekko CPU.
The Gekko is the CPU used in the GameCube. In a slightly more modern fashion it lives on in the Wii today.
Using this patch set and a modified version of Dolphin, I was able to virtualize simple GameCube demos on a 970MP system.
As always, while getting this to run I stumbled across several broken parts and fixed them as they came up. So expect some bug fixes in this patch set too.
Alexander Graf (18):
KVM: PPC: Add QPR registers
KVM: PPC: Enable MMIO to do 64 bits, fprs and qprs
KVM: PPC: Teach MMIO Signedness
KVM: PPC: Add AGAIN type for emulation return
KVM: PPC: Add hidden flag for paired singles
KVM: PPC: Add Gekko SPRs
KVM: PPC: Combine extension interrupt handlers
KVM: PPC: Preload FPU when possible
KVM: PPC: Fix typo in book3s_32 debug code
KVM: PPC: Implement mtsr instruction emulation
KVM: PPC: Make software load/store return eaddr
KVM: PPC: Make ext giveup non-static
KVM: PPC: Add helpers to call FPU instructions
KVM: PPC: Fix error in BAT assignment
KVM: PPC: Add helpers to modify ppc fields
KVM: PPC: Enable program interrupt to do MMIO
KVM: PPC: Reserve a chunk of memory for opcodes
KVM: PPC: Implement Paired Single emulation
arch/powerpc/include/asm/kvm.h | 7 + arch/powerpc/include/asm/kvm_asm.h | 1 + arch/powerpc/include/asm/kvm_book3s.h | 8 +- arch/powerpc/include/asm/kvm_fpu.h | 45 + arch/powerpc/include/asm/kvm_host.h | 6 + arch/powerpc/include/asm/kvm_ppc.h | 43 +- arch/powerpc/include/asm/reg.h | 10 + arch/powerpc/kernel/ppc_ksyms.c | 2 + arch/powerpc/kvm/Makefile | 2 + arch/powerpc/kvm/book3s.c | 132 +++- arch/powerpc/kvm/book3s_32_mmu.c | 2 +- arch/powerpc/kvm/book3s_64_emulate.c | 94 ++- arch/powerpc/kvm/book3s_paired_singles.c | 1356 ++++++++++++++++++++++++++++++ arch/powerpc/kvm/emulate.c | 18 +- arch/powerpc/kvm/fpu.S | 77 ++ arch/powerpc/kvm/powerpc.c | 56 ++- 16 files changed, 1821 insertions(+), 38 deletions(-) create mode 100644 arch/powerpc/include/asm/kvm_fpu.h create mode 100644 arch/powerpc/kvm/book3s_paired_singles.c create mode 100644 arch/powerpc/kvm/fpu.S