Skip to contentSkip to conversation

Add E500 support in KVM

PATCH Hollis Blanchard 1 participant 1 message Jan 3, 2009

lore
Share & tools
lore

Hollis Blanchard

author Applied
#0 lore raw
Quoted 20 lines · Liu Yu

This patch set add E500 support in KVM,
and is based on Hollis's patches (http://penguinppc.org/~hollisb/kvm/)

[v2]
1. fixed the bug that miss pid in kvmppc_core_vcpu_translate
2. rename a lot functions in e500_tlb.c in order to get a clearer hierarchy.
3. remove unmatched comments.
4. adjust mask to make sure tlbsel always be safe.
5. clean up code according to the booke_emulate.c

[stat]

 arch/powerpc/include/asm/kvm_asm.h  |    7 +-
 arch/powerpc/include/asm/kvm_e500.h |   67 ++++
 arch/powerpc/include/asm/kvm_host.h |    3 +-
 arch/powerpc/include/asm/kvm_ppc.h  |    2 +
 arch/powerpc/kernel/asm-offsets.c   |    4 +-
 arch/powerpc/kvm/44x_tlb.c          |    8 +
 arch/powerpc/kvm/Kconfig            |   13 +
 arch/powerpc/kvm/Makefile           |    9 +
 arch/powerpc/kvm/booke.c            |   22 +-
Quoted 8 lines
 arch/powerpc/kvm/booke.h            |   29 +-
 arch/powerpc/kvm/booke_emulate.c    |    4 +
 arch/powerpc/kvm/booke_interrupts.S |    5 +
 arch/powerpc/kvm/e500.c             |  169 ++++++++
 arch/powerpc/kvm/e500_emulate.c     |  196 ++++++++++
 arch/powerpc/kvm/e500_tlb.c         |  737 +++++++++++++++++++++++++++++++++++
 arch/powerpc/kvm/e500_tlb.h         |  184 +++++++++
16 files changed, 1442 insertions(+), 17 deletions(-)

Applied all; thanks Yu. I'll send a batch of patches to Avi, and you can test when they land in kvm.git.

Signature · 2 lines
Hollis Blanchard
IBM Linux Technology Center