Skip to content

migration: Reduce uses of target-specific macros

Philippe Mathieu-Daudé qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 14 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10target/avr: Avoid target-specific migration headers in machine.ctarget/avr/machine.c target/avr/meson.build+3 -31 reply
2/10target/loongarch: Avoid target-specific migration headers in machine.ctarget/loongarch/machine.c target/loongarch/meson.build+2 -21 reply
3/10migration: Revert "Add VMSTATE_UINTTL_2DARRAY()"include/migration/cpu.h+0 -62 replies
4/10migration: Remove unused target-specific macrosinclude/migration/cpu.h+0 -132 replies
5/10target/sparc: Inline qemu_get/put_betl()include/migration/cpu.h target/sparc/machine.c+13 -81 reply
6/10target/mips: Inline qemu_get/put_betls()include/migration/cpu.h target/mips/system/machine.c+12 -81 reply
7/10target/i386: Expand VMSTATE_UINTTL_SUB_ARRAY for APX registerstarget/i386/machine.c+1 -11 reply
8/10target/i386: Inline VMSTATE_UINTTL_SUB_ARRAY() macroinclude/migration/cpu.h target/i386/machine.c+5 -51 reply
9/10target/sparc: Replace VMSTATE_VARRAY_MULTIPLY -> VMSTATE_UINTTL_ARRAYinclude/migration/cpu.h include/migration/vmstate.h migration/vmstate.c +1 more+6 -291 reply
10/10migration: Restrict legacy VMSTATE_UINTTL() macros to few targetsconfigs/targets/i386-softmmu.mak configs/targets/mips-softmmu.mak configs/targets/mips64-softmmu.mak +12 more+25 -132 replies

Reviews trailers per patch

8 of 10 patches have a Reviewed-by or Acked-by.

PatchPierrick BouvierPeter Xu
1/10R-b
2/10R-b
3/10R-b R-b
4/10R-b R-b
5/10R-b
6/10R-b
7/10R-b
8/10
9/10R-b
10/10

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH-for-11.1 00/10] migration: Reduce uses of target-specific macros

For the single binary (read heterogeneous emulation) project we are trying to remove the uses of the 'target_ulong' type in common code (or code that should be common code but is compiled a target-specific one).

This series aims to reduce the use of migration target-specific macros. Since there is still a lot of work to be done, we introduce the TARGET_USING_LEGACY_MIGRATION_VMSTATE_UINTTL_API definition to protect the targets which are already not using these legacy migration macros.

Except for the SPARC targets, there should be no functional change.

Philippe Mathieu-Daudé (10):
target/avr: Avoid target-specific migration headers in machine.c target/loongarch: Avoid target-specific migration headers in machine.c
migration: Revert "Add VMSTATE_UINTTL_2DARRAY()"
migration: Remove unused target-specific macros target/sparc: Inline qemu_get/put_betl()
target/mips: Inline qemu_get/put_betls()
target/i386: Expand VMSTATE_UINTTL_SUB_ARRAY for APX registers target/i386: Inline VMSTATE_UINTTL_SUB_ARRAY() macro target/sparc: Replace VMSTATE_VARRAY_MULTIPLY -> VMSTATE_UINTTL_ARRAY
migration: Restrict legacy VMSTATE_UINTTL() macros to few targets

 configs/targets/i386-softmmu.mak     |  1 +
 configs/targets/mips-softmmu.mak     |  1 +
 configs/targets/mips64-softmmu.mak   |  1 +
 configs/targets/mips64el-softmmu.mak |  1 +
 configs/targets/mipsel-softmmu.mak   |  1 +
 configs/targets/ppc-softmmu.mak      |  1 +
 configs/targets/ppc64-softmmu.mak    |  1 +
 configs/targets/riscv32-softmmu.mak  |  1 +
 configs/targets/riscv64-softmmu.mak  |  1 +
 configs/targets/sparc-softmmu.mak    |  1 +
 configs/targets/sparc64-softmmu.mak  |  1 +
 configs/targets/x86_64-softmmu.mak   |  1 +
 include/migration/cpu.h              | 59 ++++++----------------------
 include/migration/vmstate.h          | 22 ++---------
 migration/vmstate.c                  |  4 --
 target/avr/machine.c                 |  3 +-
 target/i386/machine.c                |  8 +++-
 target/loongarch/machine.c           |  2 +-
 target/mips/system/machine.c         | 14 ++++++-
 target/ppc/machine.c                 |  1 +
 target/sparc/machine.c               | 24 +++++++----
 scripts/make-config-poison.sh        |  1 +
 target/avr/meson.build               |  3 +-
 target/loongarch/meson.build         |  2 +-
 24 files changed, 67 insertions(+), 88 deletions(-)
Signature · 1 line
2.53.0