Skip to content

Poison more CONFIG switches

Thomas Huth qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4include/sysemu: Poison all accelerator CONFIG switches in common codeinclude/exec/poison.h include/sysemu/hax.h include/sysemu/hvf.h +1 more+16 -01 reply
2/4migration: Move populate_vfio_info() into a separate filemigration/meson.build migration/migration.c migration/migration.h +1 more+29 -163 replies
3/4qapi/qom.json: Do not use CONFIG_VIRTIO_CRYPTO in common codeqapi/qom.json+2 -24 replies
4/4configure: Poison all current target-specific #definesMakefile configure include/exec/poison.h+8 -12 replies

Reviews trailers per patch

3 of 4 patches have a Reviewed-by or Acked-by.

PatchDr. David Alan GilbertPhilippe Mathieu-Daudé
1/4R-b
2/4R-b R-b
3/4
4/4R-b

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-6.1 0/4] Poison more CONFIG switches

Using target-specific CONFIG_xxx switches in common code via "#ifdef"s is wrong, since these macros are only defined for target-specific code. We already poison many switches in common code to avoid the bugs with dead code here, but these problems still keep creeping in ... This series now improves the situation by poisoning more symbols, especially by generating these from the target-specific config headers automatically.

Thomas Huth (4):
include/sysemu: Poison all accelerator CONFIG switches in common code
migration: Move populate_vfio_info() into a separate file qapi/qom.json: Do not use CONFIG_VIRTIO_CRYPTO in common code
configure: Poison all current target-specific #defines

 Makefile              |  2 +-
 configure             |  5 +++++
 include/exec/poison.h |  6 ++++++
 include/sysemu/hax.h  |  4 ++++
 include/sysemu/hvf.h  |  4 ++++
 include/sysemu/whpx.h |  4 ++++
 migration/meson.build |  3 ++-
 migration/migration.c | 15 ---------------
 migration/migration.h |  2 ++
 migration/target.c    | 25 +++++++++++++++++++++++++
 qapi/qom.json         |  4 ++--
 11 files changed, 55 insertions(+), 19 deletions(-)
 create mode 100644 migration/target.c
Signature · 1 line
2.27.0