public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/27] Book3S_32 (PPC32) KVM support
@ 2010-04-15 22:11 Alexander Graf
  2010-04-15 22:11 ` [PATCH 05/27] PPC: Split context init/destroy functions Alexander Graf
                   ` (11 more replies)
  0 siblings, 12 replies; 40+ messages in thread
From: Alexander Graf @ 2010-04-15 22:11 UTC (permalink / raw)
  To: kvm-ppc-u79uwXL29TY76Z2rM5mHXA; +Cc: kvm-u79uwXL29TY76Z2rM5mHXA

Since we do have support for Book3S_64 KVM now, the next obvious step is to
support the generation before that: Book3S_32.

This patch set adds support for Book3S_32 hosts, making your old G4 this much
more useful. It should also work on fancy exotic systems like the Wii and the
Game Cube, but I haven't tried yet.

As far as the path I took goes, I tried to merge as much functionality and code
as possible with the 64 bit host support. So whenever code was reusable, it gets
reused.

Alexander Graf (27):
  KVM: PPC: Name generic 64-bit code generic
  KVM: PPC: Add host MMU Support
  KVM: PPC: Add SR swapping code
  KVM: PPC: Add generic segment switching code
  PPC: Split context init/destroy functions
  KVM: PPC: Add kvm_book3s_64.h
  KVM: PPC: Add kvm_book3s_32.h
  KVM: PPC: Add fields to shadow vcpu
  KVM: PPC: Improve indirect svcpu accessors
  KVM: PPC: Use KVM_BOOK3S_HANDLER
  KVM: PPC: Use CONFIG_PPC_BOOK3S define
  PPC: Add STLU
  KVM: PPC: Use now shadowed vcpu fields
  KVM: PPC: Extract MMU init
  KVM: PPC: Make real mode handler generic
  KVM: PPC: Make highmem code generic
  KVM: PPC: Make SLB switching code the new segment framework
  KVM: PPC: Release clean pages as clean
  KVM: PPC: Remove fetch fail code
  KVM: PPC: Add SVCPU to Book3S_32
  KVM: PPC: Emulate segment fault
  KVM: PPC: Add Book3S compatibility code
  KVM: PPC: Export MMU variables
  PPC: Export SWITCH_FRAME_SIZE
  KVM: PPC: Check max IRQ prio
  KVM: PPC: Add KVM intercept handlers
  KVM: PPC: Enable Book3S_32 KVM building

 arch/powerpc/include/asm/asm-compat.h        |    2 +
 arch/powerpc/include/asm/kvm_book3s.h        |  100 +++++-
 arch/powerpc/include/asm/kvm_book3s_32.h     |   42 ++
 arch/powerpc/include/asm/kvm_book3s_64.h     |   28 ++
 arch/powerpc/include/asm/kvm_book3s_64_asm.h |   76 ----
 arch/powerpc/include/asm/kvm_book3s_asm.h    |   97 +++++
 arch/powerpc/include/asm/kvm_booke.h         |   96 +++++
 arch/powerpc/include/asm/kvm_host.h          |   16 +-
 arch/powerpc/include/asm/kvm_ppc.h           |   80 +----
 arch/powerpc/include/asm/mmu_context.h       |    2 +
 arch/powerpc/include/asm/paca.h              |   10 +-
 arch/powerpc/include/asm/processor.h         |    3 +
 arch/powerpc/kernel/asm-offsets.c            |  102 +++--
 arch/powerpc/kernel/head_32.S                |   14 +
 arch/powerpc/kernel/head_64.S                |    4 +-
 arch/powerpc/kernel/ppc_ksyms.c              |    5 +
 arch/powerpc/kvm/Kconfig                     |   24 +-
 arch/powerpc/kvm/Makefile                    |   18 +-
 arch/powerpc/kvm/book3s.c                    |  184 ++++++---
 arch/powerpc/kvm/book3s_32_mmu.c             |    3 +
 arch/powerpc/kvm/book3s_32_mmu_host.c        |  480 ++++++++++++++++++++++
 arch/powerpc/kvm/book3s_32_sr.S              |  143 +++++++
 arch/powerpc/kvm/book3s_64_emulate.c         |  566 -------------------------
 arch/powerpc/kvm/book3s_64_exports.c         |   32 --
 arch/powerpc/kvm/book3s_64_interrupts.S      |  318 --------------
 arch/powerpc/kvm/book3s_64_mmu.c             |    2 +-
 arch/powerpc/kvm/book3s_64_mmu_host.c        |   50 ++-
 arch/powerpc/kvm/book3s_64_rmhandlers.S      |  195 ---------
 arch/powerpc/kvm/book3s_64_slb.S             |  183 ++-------
 arch/powerpc/kvm/book3s_emulate.c            |  570 ++++++++++++++++++++++++++
 arch/powerpc/kvm/book3s_exports.c            |   32 ++
 arch/powerpc/kvm/book3s_interrupts.S         |  319 ++++++++++++++
 arch/powerpc/kvm/book3s_paired_singles.c     |    2 +-
 arch/powerpc/kvm/book3s_rmhandlers.S         |  252 ++++++++++++
 arch/powerpc/kvm/book3s_segment.S            |  258 ++++++++++++
 arch/powerpc/kvm/emulate.c                   |   17 +-
 arch/powerpc/kvm/powerpc.c                   |    2 +-
 arch/powerpc/mm/mmu_context_hash32.c         |   29 +-
 38 files changed, 2771 insertions(+), 1585 deletions(-)
 create mode 100644 arch/powerpc/include/asm/kvm_book3s_32.h
 create mode 100644 arch/powerpc/include/asm/kvm_book3s_64.h
 delete mode 100644 arch/powerpc/include/asm/kvm_book3s_64_asm.h
 create mode 100644 arch/powerpc/include/asm/kvm_book3s_asm.h
 create mode 100644 arch/powerpc/include/asm/kvm_booke.h
 create mode 100644 arch/powerpc/kvm/book3s_32_mmu_host.c
 create mode 100644 arch/powerpc/kvm/book3s_32_sr.S
 delete mode 100644 arch/powerpc/kvm/book3s_64_emulate.c
 delete mode 100644 arch/powerpc/kvm/book3s_64_exports.c
 delete mode 100644 arch/powerpc/kvm/book3s_64_interrupts.S
 delete mode 100644 arch/powerpc/kvm/book3s_64_rmhandlers.S
 create mode 100644 arch/powerpc/kvm/book3s_emulate.c
 create mode 100644 arch/powerpc/kvm/book3s_exports.c
 create mode 100644 arch/powerpc/kvm/book3s_interrupts.S
 create mode 100644 arch/powerpc/kvm/book3s_rmhandlers.S
 create mode 100644 arch/powerpc/kvm/book3s_segment.S

^ permalink raw reply	[flat|nested] 40+ messages in thread

end of thread, other threads:[~2010-04-21  9:42 UTC | newest]

Thread overview: 40+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-15 22:11 [PATCH 00/27] Book3S_32 (PPC32) KVM support Alexander Graf
2010-04-15 22:11 ` [PATCH 05/27] PPC: Split context init/destroy functions Alexander Graf
2010-04-16  6:46   ` Benjamin Herrenschmidt
2010-04-15 22:11 ` [PATCH 06/27] KVM: PPC: Add kvm_book3s_64.h Alexander Graf
2010-04-15 22:11 ` [PATCH 07/27] KVM: PPC: Add kvm_book3s_32.h Alexander Graf
2010-04-15 22:11 ` [PATCH 08/27] KVM: PPC: Add fields to shadow vcpu Alexander Graf
2010-04-15 22:11 ` [PATCH 12/27] PPC: Add STLU Alexander Graf
2010-04-16  6:47   ` Benjamin Herrenschmidt
     [not found] ` <1271369518-11247-1-git-send-email-agraf-l3A5Bk7waGM@public.gmane.org>
2010-04-15 22:11   ` [PATCH 01/27] KVM: PPC: Name generic 64-bit code generic Alexander Graf
2010-04-21  9:29     ` Avi Kivity
2010-04-15 22:11   ` [PATCH 02/27] KVM: PPC: Add host MMU Support Alexander Graf
2010-04-15 22:11   ` [PATCH 03/27] KVM: PPC: Add SR swapping code Alexander Graf
2010-04-15 22:11   ` [PATCH 04/27] KVM: PPC: Add generic segment switching code Alexander Graf
2010-04-15 22:11   ` [PATCH 09/27] KVM: PPC: Improve indirect svcpu accessors Alexander Graf
2010-04-15 22:11   ` [PATCH 10/27] KVM: PPC: Use KVM_BOOK3S_HANDLER Alexander Graf
2010-04-15 22:11   ` [PATCH 11/27] KVM: PPC: Use CONFIG_PPC_BOOK3S define Alexander Graf
2010-04-15 22:11   ` [PATCH 13/27] KVM: PPC: Use now shadowed vcpu fields Alexander Graf
2010-04-15 22:11   ` [PATCH 14/27] KVM: PPC: Extract MMU init Alexander Graf
2010-04-15 22:11   ` [PATCH 15/27] KVM: PPC: Make real mode handler generic Alexander Graf
2010-04-15 22:11   ` [PATCH 16/27] KVM: PPC: Make highmem code generic Alexander Graf
2010-04-15 22:11   ` [PATCH 17/27] KVM: PPC: Make SLB switching code the new segment framework Alexander Graf
2010-04-15 22:11   ` [PATCH 18/27] KVM: PPC: Release clean pages as clean Alexander Graf
2010-04-15 22:11   ` [PATCH 23/27] KVM: PPC: Export MMU variables Alexander Graf
     [not found]     ` <1271369518-11247-24-git-send-email-agraf-l3A5Bk7waGM@public.gmane.org>
2010-04-16  6:47       ` Benjamin Herrenschmidt
2010-04-16  9:07         ` Alexander Graf
     [not found]           ` <41F9F369-9F53-43E8-AC1F-1C67DD918991-l3A5Bk7waGM@public.gmane.org>
2010-04-16  9:22             ` Benjamin Herrenschmidt
2010-04-16  9:25               ` Alexander Graf
2010-04-16  9:31                 ` Alexander Graf
     [not found]                   ` <8EEEAFCF-CB31-4BD9-A917-08B5B6E40400-l3A5Bk7waGM@public.gmane.org>
2010-04-16 11:18                     ` Alexander Graf
2010-04-15 22:11   ` [PATCH 24/27] PPC: Export SWITCH_FRAME_SIZE Alexander Graf
2010-04-16  6:48     ` Benjamin Herrenschmidt
2010-04-15 22:11   ` [PATCH 25/27] KVM: PPC: Check max IRQ prio Alexander Graf
2010-04-21  9:42   ` [PATCH 00/27] Book3S_32 (PPC32) KVM support Avi Kivity
2010-04-15 22:11 ` [PATCH 19/27] KVM: PPC: Remove fetch fail code Alexander Graf
2010-04-15 22:11 ` [PATCH 20/27] KVM: PPC: Add SVCPU to Book3S_32 Alexander Graf
2010-04-15 22:11 ` [PATCH 21/27] KVM: PPC: Emulate segment fault Alexander Graf
2010-04-15 22:11 ` [PATCH 22/27] KVM: PPC: Add Book3S compatibility code Alexander Graf
2010-04-15 22:11 ` [PATCH 26/27] KVM: PPC: Add KVM intercept handlers Alexander Graf
     [not found]   ` <1271369518-11247-27-git-send-email-agraf-l3A5Bk7waGM@public.gmane.org>
2010-04-16  6:48     ` Benjamin Herrenschmidt
2010-04-15 22:11 ` [PATCH 27/27] KVM: PPC: Enable Book3S_32 KVM building Alexander Graf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox