All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/7] cpus: Convert cpu_list definition to CPUClass:list_cpus callback
@ 2025-03-24 18:58 Philippe Mathieu-Daudé
  2025-03-24 18:58 ` [PATCH v3 1/7] cpus: Introduce CPUClass::list_cpus() callback Philippe Mathieu-Daudé
                   ` (7 more replies)
  0 siblings, 8 replies; 22+ messages in thread
From: Philippe Mathieu-Daudé @ 2025-03-24 18:58 UTC (permalink / raw)
  To: qemu-devel
  Cc: Thomas Huth, qemu-s390x, Daniel Henrique Barboza,
	David Hildenbrand, Christian Borntraeger, Artyom Tarasenko,
	Eric Farman, Paolo Bonzini, Halil Pasic, Zhao Liu,
	Eduardo Habkost, Yanan Wang, Richard Henderson, qemu-ppc,
	Nicholas Piggin, Ilya Leoshkevich, Philippe Mathieu-Daudé,
	Mark Cave-Ayland, Marcel Apfelbaum

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: <20250324165356.39540-1-philmd@linaro.org>

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(-)

-- 
2.47.1



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

end of thread, other threads:[~2025-04-17 16:17 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-24 18:58 [PATCH v3 0/7] cpus: Convert cpu_list definition to CPUClass:list_cpus callback Philippe Mathieu-Daudé
2025-03-24 18:58 ` [PATCH v3 1/7] cpus: Introduce CPUClass::list_cpus() callback Philippe Mathieu-Daudé
2025-03-26  7:43   ` Zhao Liu
2025-03-24 18:58 ` [PATCH v3 2/7] target/i386: Register CPUClass:list_cpus Philippe Mathieu-Daudé
2025-03-26  7:45   ` Zhao Liu
2025-03-24 18:58 ` [PATCH v3 3/7] target/ppc: " Philippe Mathieu-Daudé
2025-03-26  8:17   ` Zhao Liu
2025-03-24 18:58 ` [PATCH v3 4/7] target/sparc: " Philippe Mathieu-Daudé
2025-03-26  8:19   ` Zhao Liu
2025-03-24 18:58 ` [PATCH v3 5/7] target/s390x: Declare s390_set_qemu_cpu_model/cpu_list in cpu_models.h Philippe Mathieu-Daudé
2025-03-25  5:30   ` Thomas Huth
2025-03-26  8:40   ` Zhao Liu
2025-03-26 13:20   ` Eric Farman
2025-03-24 18:58 ` [PATCH v3 6/7] target/s390x: Register CPUClass:list_cpus Philippe Mathieu-Daudé
2025-03-24 19:02   ` Richard Henderson
2025-03-24 19:04     ` Philippe Mathieu-Daudé
2025-03-25  5:29       ` Thomas Huth
2025-03-26  8:40   ` Zhao Liu
2025-03-26 13:20   ` Eric Farman
2025-03-24 18:58 ` [PATCH v3 7/7] cpus: Remove #ifdef check on cpu_list definition Philippe Mathieu-Daudé
2025-03-26  8:34   ` Zhao Liu
2025-04-17 16:16 ` [PATCH v3 0/7] cpus: Convert cpu_list definition to CPUClass:list_cpus callback Philippe Mathieu-Daudé

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.