qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 00/14] meson: Deprecate 32-bit host support
@ 2025-02-03  3:18 Richard Henderson
  2025-02-03  3:18 ` [PATCH v2 01/14] meson: Drop tcg as a module Richard Henderson
                   ` (14 more replies)
  0 siblings, 15 replies; 62+ messages in thread
From: Richard Henderson @ 2025-02-03  3:18 UTC (permalink / raw)
  To: qemu-devel; +Cc: pbonzini, mark.cave-ayland, berrange, philmd, thuth

v1: 20250128004254.33442-1-richard.henderson@linaro.org

For v2, immediately disable 64-on-32 TCG.

I *suspect* that we should disable 64-on-32 for *all* accelerators.
The idea that an i686 binary on an x86_64 host may be used to spawn
an x86_64 guest via kvm is silly and a bit more than niche.
Similarly for mips32 spawning mips64 and ppc32 spawning ppc64.

But in the meantime, jump through a couple of hoops to keep these
kvm and xen cases building, while disabling tcg in the same binaries.


Richard Henderson (14):
  meson: Drop tcg as a module
  tcg: Move stubs in tcg/perf.h to tcg/perf-stubs.c
  plugins: Uninline qemu_plugin_add_opts
  meson: Introduce CONFIG_TCG_TARGET
  tcg: Link only when required in system mode
  plugins: Link only when required in system mode
  accel/stubs: Expand stubs for TCG
  target/mips: Protect objects with CONFIG_TCG
  gitlab: Replace aarch64 with arm in cross-i686-tci build
  configure: Define TARGET_LONG_BITS in configs/targets/*.mak
  target/*: Remove TARGET_LONG_BITS from cpu-param.h
  meson: Disallow 64-bit on 32-bit TCG emulation
  meson: Deprecate 32-bit host support
  tcg: Remove TCG_OVERSIZED_GUEST

 include/qemu/atomic.h                       | 18 ++------
 include/qemu/osdep.h                        |  7 +++
 include/qemu/plugin.h                       |  9 +---
 include/tcg/oversized-guest.h               | 23 ----------
 include/tcg/perf.h                          | 23 ----------
 target/alpha/cpu-param.h                    |  2 -
 target/arm/cpu-param.h                      |  2 -
 target/avr/cpu-param.h                      |  1 -
 target/hexagon/cpu-param.h                  |  1 -
 target/hppa/cpu-param.h                     |  2 -
 target/i386/cpu-param.h                     |  2 -
 target/loongarch/cpu-param.h                |  1 -
 target/m68k/cpu-param.h                     |  1 -
 target/microblaze/cpu-param.h               |  2 -
 target/mips/cpu-param.h                     |  5 ---
 target/openrisc/cpu-param.h                 |  1 -
 target/ppc/cpu-param.h                      |  2 -
 target/riscv/cpu-param.h                    |  2 -
 target/rx/cpu-param.h                       |  1 -
 target/s390x/cpu-param.h                    |  1 -
 target/sh4/cpu-param.h                      |  1 -
 target/sparc/cpu-param.h                    |  2 -
 target/tricore/cpu-param.h                  |  1 -
 target/xtensa/cpu-param.h                   |  1 -
 accel/stubs/tcg-stub.c                      | 24 ++++++++++
 accel/tcg/cputlb.c                          |  7 ---
 accel/tcg/tcg-all.c                         |  9 ++--
 plugins/loader.c                            |  7 ++-
 plugins/stubs.c                             | 49 +++++++++++++++++++++
 target/arm/ptw.c                            | 34 --------------
 target/riscv/cpu_helper.c                   | 13 +-----
 tcg/perf-stubs.c                            | 26 +++++++++++
 .gitlab-ci.d/crossbuilds.yml                |  2 +-
 accel/tcg/meson.build                       | 11 ++---
 configs/targets/aarch64-bsd-user.mak        |  1 +
 configs/targets/aarch64-linux-user.mak      |  1 +
 configs/targets/aarch64-softmmu.mak         |  1 +
 configs/targets/aarch64_be-linux-user.mak   |  1 +
 configs/targets/alpha-linux-user.mak        |  1 +
 configs/targets/alpha-softmmu.mak           |  1 +
 configs/targets/arm-bsd-user.mak            |  1 +
 configs/targets/arm-linux-user.mak          |  1 +
 configs/targets/arm-softmmu.mak             |  1 +
 configs/targets/armeb-linux-user.mak        |  1 +
 configs/targets/avr-softmmu.mak             |  1 +
 configs/targets/hexagon-linux-user.mak      |  1 +
 configs/targets/hppa-linux-user.mak         |  2 +
 configs/targets/hppa-softmmu.mak            |  1 +
 configs/targets/i386-bsd-user.mak           |  1 +
 configs/targets/i386-linux-user.mak         |  1 +
 configs/targets/i386-softmmu.mak            |  1 +
 configs/targets/loongarch64-linux-user.mak  |  1 +
 configs/targets/loongarch64-softmmu.mak     |  1 +
 configs/targets/m68k-linux-user.mak         |  1 +
 configs/targets/m68k-softmmu.mak            |  1 +
 configs/targets/microblaze-linux-user.mak   |  1 +
 configs/targets/microblaze-softmmu.mak      |  3 ++
 configs/targets/microblazeel-linux-user.mak |  1 +
 configs/targets/microblazeel-softmmu.mak    |  3 ++
 configs/targets/mips-linux-user.mak         |  1 +
 configs/targets/mips-softmmu.mak            |  1 +
 configs/targets/mips64-linux-user.mak       |  1 +
 configs/targets/mips64-softmmu.mak          |  1 +
 configs/targets/mips64el-linux-user.mak     |  1 +
 configs/targets/mips64el-softmmu.mak        |  1 +
 configs/targets/mipsel-linux-user.mak       |  1 +
 configs/targets/mipsel-softmmu.mak          |  1 +
 configs/targets/mipsn32-linux-user.mak      |  1 +
 configs/targets/mipsn32el-linux-user.mak    |  1 +
 configs/targets/or1k-linux-user.mak         |  1 +
 configs/targets/or1k-softmmu.mak            |  1 +
 configs/targets/ppc-linux-user.mak          |  1 +
 configs/targets/ppc-softmmu.mak             |  1 +
 configs/targets/ppc64-linux-user.mak        |  1 +
 configs/targets/ppc64-softmmu.mak           |  1 +
 configs/targets/ppc64le-linux-user.mak      |  1 +
 configs/targets/riscv32-linux-user.mak      |  1 +
 configs/targets/riscv32-softmmu.mak         |  1 +
 configs/targets/riscv64-bsd-user.mak        |  1 +
 configs/targets/riscv64-linux-user.mak      |  1 +
 configs/targets/riscv64-softmmu.mak         |  1 +
 configs/targets/rx-softmmu.mak              |  1 +
 configs/targets/s390x-linux-user.mak        |  1 +
 configs/targets/s390x-softmmu.mak           |  1 +
 configs/targets/sh4-linux-user.mak          |  1 +
 configs/targets/sh4-softmmu.mak             |  1 +
 configs/targets/sh4eb-linux-user.mak        |  1 +
 configs/targets/sh4eb-softmmu.mak           |  1 +
 configs/targets/sparc-linux-user.mak        |  1 +
 configs/targets/sparc-softmmu.mak           |  1 +
 configs/targets/sparc32plus-linux-user.mak  |  1 +
 configs/targets/sparc64-linux-user.mak      |  1 +
 configs/targets/sparc64-softmmu.mak         |  1 +
 configs/targets/tricore-softmmu.mak         |  1 +
 configs/targets/x86_64-bsd-user.mak         |  1 +
 configs/targets/x86_64-linux-user.mak       |  1 +
 configs/targets/x86_64-softmmu.mak          |  1 +
 configs/targets/xtensa-linux-user.mak       |  1 +
 configs/targets/xtensa-softmmu.mak          |  1 +
 configs/targets/xtensaeb-linux-user.mak     |  1 +
 configs/targets/xtensaeb-softmmu.mak        |  1 +
 docs/about/deprecated.rst                   |  7 +++
 docs/devel/multi-thread-tcg.rst             |  1 -
 meson.build                                 | 47 +++++++++-----------
 plugins/meson.build                         |  5 ++-
 target/mips/tcg/meson.build                 |  4 +-
 target/mips/tcg/system/meson.build          |  6 +--
 tcg/meson.build                             |  8 +++-
 108 files changed, 241 insertions(+), 202 deletions(-)
 delete mode 100644 include/tcg/oversized-guest.h
 create mode 100644 plugins/stubs.c
 create mode 100644 tcg/perf-stubs.c

-- 
2.43.0



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

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

Thread overview: 62+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-03  3:18 [PATCH v2 00/14] meson: Deprecate 32-bit host support Richard Henderson
2025-02-03  3:18 ` [PATCH v2 01/14] meson: Drop tcg as a module Richard Henderson
2025-02-03  9:58   ` Thomas Huth
2025-02-03 18:39     ` Philippe Mathieu-Daudé
2025-02-03 11:34   ` Alex Bennée
2025-02-03 18:36   ` Philippe Mathieu-Daudé
2025-02-03  3:18 ` [PATCH v2 02/14] tcg: Move stubs in tcg/perf.h to tcg/perf-stubs.c Richard Henderson
2025-02-03 10:00   ` Thomas Huth
2025-02-03 11:34   ` Alex Bennée
2025-02-03  3:18 ` [PATCH v2 03/14] plugins: Uninline qemu_plugin_add_opts Richard Henderson
2025-02-03 10:02   ` Thomas Huth
2025-02-03 11:44   ` Alex Bennée
2025-02-03  3:18 ` [PATCH v2 04/14] meson: Introduce CONFIG_TCG_TARGET Richard Henderson
2025-02-03 10:08   ` Thomas Huth
2025-02-03 16:38     ` Richard Henderson
2025-02-04  6:41       ` Thomas Huth
2025-02-03  3:18 ` [PATCH v2 05/14] tcg: Link only when required in system mode Richard Henderson
2025-02-03 10:15   ` Thomas Huth
2025-02-03 11:48   ` Alex Bennée
2025-02-03  3:18 ` [PATCH v2 06/14] plugins: " Richard Henderson
2025-02-03 10:16   ` Thomas Huth
2025-02-03 11:49   ` Alex Bennée
2025-02-03  3:18 ` [PATCH v2 07/14] accel/stubs: Expand stubs for TCG Richard Henderson
2025-02-03 10:22   ` Thomas Huth
2025-02-03 16:43     ` Richard Henderson
2025-02-03 17:38       ` Thomas Huth
2025-02-03 20:00         ` Richard Henderson
2025-02-03  3:18 ` [PATCH v2 08/14] target/mips: Protect objects with CONFIG_TCG Richard Henderson
2025-02-03 10:24   ` Thomas Huth
2025-02-03 17:25   ` Philippe Mathieu-Daudé
2025-02-03 18:01     ` Richard Henderson
2025-02-03  3:18 ` [PATCH v2 09/14] gitlab: Replace aarch64 with arm in cross-i686-tci build Richard Henderson
2025-02-03 10:30   ` Thomas Huth
2025-02-03 12:31   ` Alex Bennée
2025-02-03  3:18 ` [PATCH v2 10/14] configure: Define TARGET_LONG_BITS in configs/targets/*.mak Richard Henderson
2025-02-03 10:39   ` Thomas Huth
2025-02-03 12:33     ` Alex Bennée
2025-02-03 16:49     ` Richard Henderson
2025-02-03 17:39       ` Thomas Huth
2025-02-03 17:48   ` Philippe Mathieu-Daudé
2025-02-03 18:30   ` Philippe Mathieu-Daudé
2025-02-03 19:19     ` Richard Henderson
2025-02-03  3:18 ` [PATCH v2 11/14] target/*: Remove TARGET_LONG_BITS from cpu-param.h Richard Henderson
2025-02-03 10:43   ` Thomas Huth
2025-02-03 12:34   ` Alex Bennée
2025-02-03 18:31   ` Philippe Mathieu-Daudé
2025-02-03  3:18 ` [PATCH v2 12/14] meson: Disallow 64-bit on 32-bit TCG emulation Richard Henderson
2025-02-03 10:46   ` Thomas Huth
2025-02-03 13:54   ` Alex Bennée
2025-02-03  3:18 ` [PATCH v2 13/14] meson: Deprecate 32-bit host support Richard Henderson
2025-02-03 10:47   ` Thomas Huth
2025-02-03 13:56   ` Alex Bennée
2025-02-03  3:18 ` [PATCH v2 14/14] tcg: Remove TCG_OVERSIZED_GUEST Richard Henderson
2025-02-03 13:59   ` Alex Bennée
2025-02-04 17:42     ` Richard Henderson
2025-02-03 12:54 ` [PATCH v2 00/14] meson: Deprecate 32-bit host support Paolo Bonzini
2025-02-03 21:55   ` Richard Henderson
2025-02-03 22:43     ` Stefano Stabellini
2025-02-04  8:12       ` Daniel P. Berrangé
2025-02-04  8:19       ` Juergen Gross
2025-02-04  9:11         ` Jan Beulich
2025-02-04 10:44           ` Philippe Mathieu-Daudé

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