qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH-for-10.1 00/19] qemu: Introduce TargetInfo API (for single binary)
@ 2025-04-03 23:48 Philippe Mathieu-Daudé
  2025-04-03 23:48 ` [RFC PATCH-for-10.1 01/19] qemu: Introduce TargetInfo API in 'target_info.h' Philippe Mathieu-Daudé
                   ` (18 more replies)
  0 siblings, 19 replies; 51+ messages in thread
From: Philippe Mathieu-Daudé @ 2025-04-03 23:48 UTC (permalink / raw)
  To: qemu-devel
  Cc: Alex Bennée, Markus Armbruster, Richard Henderson,
	Pierrick Bouvier

Hi,

At this point this series is mostly a draft for Pierrick.
It implement his idea of a per-binary structure containing
all target-specific information, exposing them via a
target-agnostic API. Commits are barely commented, since
I'd rather get feedback before pursuing further.

Available here, based on tcg-next:
https://gitlab.com/philmd/qemu/-/tags/single-binary-target-info-api-rfc-v1

Another series will follow with the ARM implementation.

Regards,

Phil.

Philippe Mathieu-Daudé (19):
  qemu: Introduce TargetInfo API in 'target_info.h'
  qemu: Convert target_name() to TargetInfo API
  qemu: Factor target_system_arch() out
  qemu: Convert target_words_bigendian() to TargetInfo API
  qemu: Introduce target_long_bits()
  target/tricore: Replace TARGET_LONG_BITS -> target_long_bits()
  target/hppa: Replace TARGET_LONG_BITS -> target_long_bits()
  target/riscv: Replace TARGET_LONG_BITS -> target_long_bits()
  qemu: Introduce target_cpu_type()
  cpus: Replace CPU_RESOLVING_TYPE -> target_cpu_type()
  accel/tcg: Replace CPU_RESOLVING_TYPE -> target_cpu_type()
  cpus: Move target-agnostic methods out of cpu-target.c
  accel: Replace CPU_RESOLVING_TYPE -> target_cpu_type()
  accel: Implement accel_init_ops_interfaces() for both system/user mode
  accel: Include missing 'qemu/accel.h' header in accel-internal.h
  accel: Make AccelCPUClass structure target-agnostic
  accel: Move target-agnostic code from accel-target.c -> accel-common.c
  qemu: Prepare per-binary QOM filter via TYPE_BINARY_PREFIX
  system/vl: Filter machine list for binary using
    machine_binary_filter()

 meson.build                                |  10 ++
 accel/{accel-system.h => accel-internal.h} |  10 +-
 include/accel/accel-cpu-target.h           |  12 +-
 include/accel/accel-cpu.h                  |  23 ++++
 include/exec/poison.h                      |   1 +
 include/exec/tswap.h                       |  13 +-
 include/hw/boards.h                        |   1 +
 include/hw/core/cpu.h                      |   2 -
 include/qemu/target_info-impl.h            |  38 ++++++
 include/qemu/target_info-qom.h             |  14 ++
 include/qemu/target_info.h                 |  39 ++++++
 accel/accel-common.c                       | 142 +++++++++++++++++++++
 accel/accel-system.c                       |   4 +-
 accel/accel-target.c                       | 134 -------------------
 accel/accel-user.c                         |   6 +
 accel/tcg/tcg-all.c                        |   4 +-
 cpu-target.c                               |  88 +------------
 hw/core/cpu-common.c                       |  74 +++++++++++
 hw/core/cpu-system.c                       |   2 +-
 hw/core/machine-qmp-cmds.c                 |   7 +-
 hw/display/vga.c                           |   2 +-
 hw/riscv/riscv-iommu.c                     |   3 +-
 hw/riscv/riscv_hart.c                      |   3 +-
 hw/virtio/virtio.c                         |   2 +-
 plugins/loader.c                           |   2 +-
 system/qtest.c                             |   1 +
 system/vl.c                                |  26 +++-
 target/hppa/mem_helper.c                   |   3 +-
 target/hppa/translate.c                    |   3 +-
 target/tricore/translate.c                 |   6 +-
 target_info-qom.c                          |  15 +++
 target_info-stub.c                         |  29 +++++
 target_info.c                              |  48 +++++++
 accel/meson.build                          |   1 +
 34 files changed, 499 insertions(+), 269 deletions(-)
 rename accel/{accel-system.h => accel-internal.h} (56%)
 create mode 100644 include/accel/accel-cpu.h
 create mode 100644 include/qemu/target_info-impl.h
 create mode 100644 include/qemu/target_info-qom.h
 create mode 100644 include/qemu/target_info.h
 create mode 100644 accel/accel-common.c
 create mode 100644 target_info-qom.c
 create mode 100644 target_info-stub.c
 create mode 100644 target_info.c

-- 
2.47.1



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

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

Thread overview: 51+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-03 23:48 [RFC PATCH-for-10.1 00/19] qemu: Introduce TargetInfo API (for single binary) Philippe Mathieu-Daudé
2025-04-03 23:48 ` [RFC PATCH-for-10.1 01/19] qemu: Introduce TargetInfo API in 'target_info.h' Philippe Mathieu-Daudé
2025-04-04 16:41   ` Pierrick Bouvier
2025-04-03 23:48 ` [RFC PATCH-for-10.1 02/19] qemu: Convert target_name() to TargetInfo API Philippe Mathieu-Daudé
2025-04-04 16:42   ` Pierrick Bouvier
2025-04-03 23:48 ` [RFC PATCH-for-10.1 03/19] qemu: Factor target_system_arch() out Philippe Mathieu-Daudé
2025-04-04 16:44   ` Pierrick Bouvier
2025-04-03 23:48 ` [RFC PATCH-for-10.1 04/19] qemu: Convert target_words_bigendian() to TargetInfo API Philippe Mathieu-Daudé
2025-04-04 16:45   ` Pierrick Bouvier
2025-04-03 23:49 ` [RFC PATCH-for-10.1 05/19] qemu: Introduce target_long_bits() Philippe Mathieu-Daudé
2025-04-04 16:46   ` Pierrick Bouvier
2025-04-03 23:49 ` [RFC PATCH-for-10.1 06/19] target/tricore: Replace TARGET_LONG_BITS -> target_long_bits() Philippe Mathieu-Daudé
2025-04-04 16:48   ` Pierrick Bouvier
2025-04-04 17:53     ` Philippe Mathieu-Daudé
2025-04-17 18:00       ` Paolo Bonzini
2025-04-17 18:32         ` Philippe Mathieu-Daudé
2025-04-03 23:49 ` [RFC PATCH-for-10.1 07/19] target/hppa: " Philippe Mathieu-Daudé
2025-04-04 16:48   ` Pierrick Bouvier
2025-04-04 17:54     ` Philippe Mathieu-Daudé
2025-04-17 17:27   ` Paolo Bonzini
2025-04-03 23:49 ` [RFC PATCH-for-10.1 08/19] target/riscv: " Philippe Mathieu-Daudé
2025-04-04 16:48   ` Pierrick Bouvier
2025-04-04 17:54     ` Philippe Mathieu-Daudé
2025-04-03 23:49 ` [RFC PATCH-for-10.1 09/19] qemu: Introduce target_cpu_type() Philippe Mathieu-Daudé
2025-04-04 16:48   ` Pierrick Bouvier
2025-04-03 23:49 ` [RFC PATCH-for-10.1 10/19] cpus: Replace CPU_RESOLVING_TYPE -> target_cpu_type() Philippe Mathieu-Daudé
2025-04-04 16:51   ` Pierrick Bouvier
2025-04-03 23:49 ` [RFC PATCH-for-10.1 11/19] accel/tcg: " Philippe Mathieu-Daudé
2025-04-04 16:51   ` Pierrick Bouvier
2025-04-04 17:56     ` Philippe Mathieu-Daudé
2025-04-04 18:04       ` Pierrick Bouvier
2025-04-03 23:49 ` [RFC PATCH-for-10.1 12/19] cpus: Move target-agnostic methods out of cpu-target.c Philippe Mathieu-Daudé
2025-04-04 16:53   ` Pierrick Bouvier
2025-04-03 23:49 ` [RFC PATCH-for-10.1 13/19] accel: Replace CPU_RESOLVING_TYPE -> target_cpu_type() Philippe Mathieu-Daudé
2025-04-04 16:52   ` Pierrick Bouvier
2025-04-03 23:49 ` [RFC PATCH-for-10.1 14/19] accel: Implement accel_init_ops_interfaces() for both system/user mode Philippe Mathieu-Daudé
2025-04-04 16:56   ` Pierrick Bouvier
2025-04-03 23:49 ` [RFC PATCH-for-10.1 15/19] accel: Include missing 'qemu/accel.h' header in accel-internal.h Philippe Mathieu-Daudé
2025-04-04 16:56   ` Pierrick Bouvier
2025-04-03 23:49 ` [RFC PATCH-for-10.1 16/19] accel: Make AccelCPUClass structure target-agnostic Philippe Mathieu-Daudé
2025-04-04 16:57   ` Pierrick Bouvier
2025-04-03 23:49 ` [RFC PATCH-for-10.1 17/19] accel: Move target-agnostic code from accel-target.c -> accel-common.c Philippe Mathieu-Daudé
2025-04-04 16:59   ` Pierrick Bouvier
2025-04-17 16:42     ` Philippe Mathieu-Daudé
2025-04-03 23:49 ` [RFC PATCH-for-10.1 18/19] qemu: Prepare per-binary QOM filter via TYPE_BINARY_PREFIX Philippe Mathieu-Daudé
2025-04-04 17:04   ` Pierrick Bouvier
2025-04-03 23:49 ` [RFC PATCH-for-10.1 19/19] system/vl: Filter machine list for binary using machine_binary_filter() Philippe Mathieu-Daudé
2025-04-04 17:10   ` Pierrick Bouvier
2025-04-04 18:01     ` Philippe Mathieu-Daudé
2025-04-04 18:08       ` Pierrick Bouvier
2025-04-04 18:11         ` Pierrick Bouvier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).