Skip to content

RFC target/ppc: powerpc_excp improvements

Fabiano Rosas qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 RFC Latest12 patches 16 repliesIn review
  2. v1 RFC5 patches 9 repliesApplied

v1 from the cover letter

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12target/ppc: powerpc_excp: Set alternate SRRs directlytarget/ppc/excp_helper.c+8 -153 replies
2/12target/ppc: powerpc_excp: Set vector earliertarget/ppc/excp_helper.c+8 -84 replies
3/12target/ppc: powerpc_excp: Move system call vectored code togethertarget/ppc/excp_helper.c+5 -82 replies
4/12target/ppc: powerpc_excp: Stop passing excp_model aroundtarget/ppc/excp_helper.c+21 -223 replies
5/12target/ppc: powerpc_excp: Standardize arguments to interrupt codetarget/ppc/excp_helper.c+113 -1002 replies
6/12target/ppc: Extract interrupt routines into a new filetarget/ppc/excp_helper.c target/ppc/interrupts.c target/ppc/meson.build +1 more+769 -3720 replies
7/12target/ppc: Introduce PPCInterrupttarget/ppc/excp_helper.c target/ppc/interrupts.c target/ppc/ppc_intr.h+236 -1570 replies
8/12target/ppc: Remove unimplemented interrupt codetarget/ppc/interrupts.c target/ppc/ppc_intr.h+19 -2030 replies
9/12target/ppc: Use common code for Hypervisor interruptstarget/ppc/interrupts.c target/ppc/ppc_intr.h+21 -1150 replies
10/12target/ppc: Split powerpc_excp into book3s, booke and 32 bittarget/ppc/excp_helper.c target/ppc/interrupts.c target/ppc/ppc_intr.h+350 -1380 replies
11/12target/ppc: Create new files for book3s, booke and ppc32 exception codetarget/ppc/cpu.h target/ppc/excp_helper.c target/ppc/interrupts.c +6 more+724 -6790 replies
12/12target/ppc: Do not enable all interrupts when running KVMtarget/ppc/interrupts.c target/ppc/intr-book3s.c target/ppc/intr-booke.c +1 more+161 -1230 replies

Reviews trailers per patch

4 of 12 patches have a Reviewed-by or Acked-by.

PatchRichard HendersonCédric Le GoaterDavid Gibson
1/12R-b R-b R-b
2/12R-b
3/12R-b R-b
4/12R-b R-b R-b
5/12
6/12
7/12
8/12
9/12
10/12
11/12
12/12

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v2 thread

Cover letter [RFC v2 00/12] target/ppc: powerpc_excp improvements

This changed a lot since v1, basically what remains is the idea that we want to have some sort of array of interrupts and some sort of separation between processors.

At the end of this series we'll have:

- One file with all interrupt implementations (interrupts.c);

- Separate files for each major group of CPUs (book3s, booke, 32bits). Only interrupt code for now, but we could bring pieces of cpu_init into them;

- Four separate interrupt arrays, one for each of the above groups plus KVM.

- powerpc_excp calls into the individual files and from there we dispatch according to what is available in the interrupts array.

Please comment,

Thanks.

v1:
https://lists.nongnu.org/archive/html/qemu-ppc/2021-06/msg00026.html

Fabiano Rosas (12):
target/ppc: powerpc_excp: Set alternate SRRs directly target/ppc: powerpc_excp: Set vector earlier target/ppc: powerpc_excp: Move system call vectored code together target/ppc: powerpc_excp: Stop passing excp_model around target/ppc: powerpc_excp: Standardize arguments to interrupt code target/ppc: Extract interrupt routines into a new file target/ppc: Introduce PPCInterrupt
target/ppc: Remove unimplemented interrupt code target/ppc: Use common code for Hypervisor interrupts target/ppc: Split powerpc_excp into book3s, booke and 32 bit target/ppc: Create new files for book3s, booke and ppc32 exception
code
target/ppc: Do not enable all interrupts when running KVM

 target/ppc/cpu.h         |   2 +
 target/ppc/excp_helper.c | 862 ++-------------------------------------
 target/ppc/interrupts.c  | 521 +++++++++++++++++++++++
 target/ppc/intr-book3s.c | 383 +++++++++++++++++
 target/ppc/intr-booke.c  | 152 +++++++
 target/ppc/intr-ppc32.c  | 159 ++++++++
 target/ppc/meson.build   |   4 +
 target/ppc/ppc_intr.h    |  62 +++
 target/ppc/tcg-stub.c    |   6 +
 9 files changed, 1323 insertions(+), 828 deletions(-)
 create mode 100644 target/ppc/interrupts.c
 create mode 100644 target/ppc/intr-book3s.c
 create mode 100644 target/ppc/intr-booke.c
 create mode 100644 target/ppc/intr-ppc32.c
 create mode 100644 target/ppc/ppc_intr.h
Signature · 1 line
2.33.1