Skip to content

cpus: Convert cpu_list definition to CPUClass:list_cpus callback

Philippe Mathieu-Daudé qemu-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest7 patches 14 repliesIn review
  2. v27 patches 6 repliesSuperseded
  3. v16 patches 9 repliesSuperseded

Changes in v3 from the cover letter

- Added R-b tags
- Added missing s390x hunk

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7cpus: Introduce CPUClass::list_cpus() callbackcpu-target.c include/hw/core/cpu.h+9 -11 reply
2/7target/i386: Register CPUClass:list_cpustarget/i386/cpu.c target/i386/cpu.h+2 -41 reply
3/7target/ppc: Register CPUClass:list_cpustarget/ppc/cpu.h target/ppc/cpu_init.c+2 -51 reply
4/7target/sparc: Register CPUClass:list_cpustarget/sparc/cpu.c target/sparc/cpu.h+2 -41 reply
5/7target/s390x: Declare s390_set_qemu_cpu_model/cpu_list in cpu_models.hhw/s390x/s390-virtio-ccw.c target/s390x/cpu.h target/s390x/cpu_models.h+4 -53 replies
6/7target/s390x: Register CPUClass:list_cpustarget/s390x/cpu.c target/s390x/cpu.h+1 -35 replies
7/7cpus: Remove #ifdef check on cpu_list definitioncpu-target.c+6 -131 reply

Reviews trailers per patch

All 7 patches have a Reviewed-by or Acked-by.

PatchThomas HuthRichard HendersonZhao LiuEric Farman
1/7R-b R-b R-b
2/7R-b R-b R-b
3/7R-b R-b R-b
4/7R-b R-b R-b
5/7R-b R-b R-b
6/7R-b R-b R-b
7/7R-b R-b R-b

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

Read the v3 thread

Cover letter [PATCH v3 0/7] cpus: Convert cpu_list definition to CPUClass:list_cpus callback

Since v2
- Added R-b tags
- Added missing s390x hunk

Since v1 (Thomas review comments)
- Move s390_set_qemu_cpu_model/s390_cpu_list to "cpu_models.h"
- Correct 'target/s390x: Register CPUClass:list_cpus' subject

'cpu_list' might be defined per target, and force code to be built per-target. We can avoid that by introducing a CPUClass callback.

This series combined with another which converts CPU_RESOLVING_TYPE to a runtime helper, allows to move most of cpu-target to common.

Based-on: <[email protected]>

Philippe Mathieu-Daudé (7):
cpus: Introduce CPUClass::list_cpus() callback target/i386: Register CPUClass:list_cpus
target/ppc: Register CPUClass:list_cpus
target/sparc: Register CPUClass:list_cpus
target/s390x: Declare s390_set_qemu_cpu_model/cpu_list in cpu_models.h target/s390x: Register CPUClass:list_cpus
cpus: Remove #ifdef check on cpu_list definition

 include/hw/core/cpu.h      |  2 ++
 target/i386/cpu.h          |  3 ---
 target/ppc/cpu.h           |  4 ----
 target/s390x/cpu.h         |  7 -------
 target/s390x/cpu_models.h  |  3 +++
 target/sparc/cpu.h         |  3 ---
 cpu-target.c               | 25 ++++++++++++-------------
 hw/s390x/s390-virtio-ccw.c |  2 +-
 target/i386/cpu.c          |  3 ++-
 target/ppc/cpu_init.c      |  3 ++-
 target/s390x/cpu.c         |  1 +
 target/sparc/cpu.c         |  3 ++-
 12 files changed, 25 insertions(+), 34 deletions(-)
Signature · 1 line
2.47.1