Skip to content

target/ppc: Implement POWER9 pseries tcg legacy support

Suraj Jitindar Singh qemu-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest10 patches 15 repliesIn review
  2. v210 patches 11 repliesSuperseded
  3. v1 RFC17 patches 34 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10target/ppc/POWER9: Add ISAv3.00 MMU definitiontarget/ppc/cpu-qom.h target/ppc/mmu_helper.c target/ppc/translate_init.c+7 -33 replies
2/10target/ppc: Fix LPCR DPFD mask definetarget/ppc/cpu.h+1 -11 reply
3/10target/ppc/POWER9: Adapt LPCR handling for POWER9target/ppc/cpu.h target/ppc/mmu-hash64.c target/ppc/translate_init.c+44 -64 replies
4/10target/ppc/POWER9: Direct all instr and data storage interrupts to the hypvtarget/ppc/mmu-hash64.c+18 -21 reply
5/10target/ppc: Add patb_entry to sPAPRMachineStatehw/ppc/spapr.c include/hw/ppc/spapr.h target/ppc/cpu.h+31 -02 replies
6/10target/ppc: Don't gen an SDR1 on POWER9 and rework register creationtarget/ppc/mmu-hash64.c target/ppc/mmu-hash64.h target/ppc/mmu_helper.c +2 more+218 -1281 reply
7/10target/ppc/POWER9: Add POWER9 mmu fault handlertarget/ppc/mmu-book3s-v3.h target/ppc/mmu-hash64.c target/ppc/mmu_helper.c +1 more+100 -12 replies
8/10target/ppc/POWER9: Add POWER9 pa-features definitionhw/ppc/spapr.c+18 -00 replies
9/10target/ppc/POWER9: Add cpu_has_work function for POWER9target/ppc/translate_init.c+45 -00 replies
10/10hw/ppc/spapr: Add POWER9 to pseries cpu modelshw/ppc/spapr_cpu_core.c+3 -00 replies

Reviews trailers per patch

7 of 10 patches have a Reviewed-by or Acked-by.

PatchDavid GibsonBalbir Singh
1/10
2/10A-b
3/10R-b
4/10R-b A-b
5/10
6/10R-b
7/10
8/10R-b
9/10R-b
10/10R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [Qemu-devel] [QEMU-PPC] [PATCH V3 00/10] target/ppc: Implement POWER9 pseries tcg legacy support

This is V3 of the patch series to implement tcg emulation support for a POWER9 cpu model for the pseries machine type running a legacy kernel. That is a kernel which doesn't use the new radix mmu mode or the new hash mmu mode with segment tables.

To use a POWER9 cpu provide the command line option "-cpu POWER9".

This series attempts to avoid precluding KVM-HV support for the POWER9 cpu model but doesn't attempt to support KVM-PR or the powernv machine for the POWER9 cpu model as these aren't currently supported or implemented and further code changes will be required in the event these are implemented.

This series is used as a base to implement radix support.

The changes from V2 are as follows:

- Only migrate the partition table entry on non-zero value
- Change how register generation works to simplify adding/removing registers
- Rename mmu.h -> mmu-book3s-v3.h
- Error report and abort on attempt to use segment tables

Suraj Jitindar Singh (10):
target/ppc/POWER9: Add ISAv3.00 MMU definition
target/ppc: Fix LPCR DPFD mask define
target/ppc/POWER9: Adapt LPCR handling for POWER9 target/ppc/POWER9: Direct all instr and data storage interrupts to the
hypv
target/ppc: Add patb_entry to sPAPRMachineState target/ppc: Don't gen an SDR1 on POWER9 and rework register creation target/ppc/POWER9: Add POWER9 mmu fault handler target/ppc/POWER9: Add POWER9 pa-features definition target/ppc/POWER9: Add cpu_has_work function for POWER9 hw/ppc/spapr: Add POWER9 to pseries cpu models

 hw/ppc/spapr.c              |  47 ++++++
 hw/ppc/spapr_cpu_core.c     |   3 +
 include/hw/ppc/spapr.h      |   1 +
 target/ppc/cpu-qom.h        |   5 +-
 target/ppc/cpu.h            |  21 ++-
 target/ppc/mmu-book3s-v3.h  |  50 ++++++
 target/ppc/mmu-hash64.c     |  53 +++++-
 target/ppc/mmu-hash64.h     |   4 +-
 target/ppc/mmu_helper.c     |  44 ++++-
 target/ppc/translate.c      |   7 +-
 target/ppc/translate_init.c | 391 ++++++++++++++++++++++++++++++--------------
 11 files changed, 485 insertions(+), 141 deletions(-)
 create mode 100644 target/ppc/mmu-book3s-v3.h
Signature · 1 line
2.5.5