qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/4] COLO: improve build options
@ 2023-04-27 20:29 Vladimir Sementsov-Ogievskiy
  2023-04-27 20:29 ` [PATCH v3 1/4] block/meson.build: prefer positive condition for replication Vladimir Sementsov-Ogievskiy
                   ` (3 more replies)
  0 siblings, 4 replies; 16+ messages in thread
From: Vladimir Sementsov-Ogievskiy @ 2023-04-27 20:29 UTC (permalink / raw)
  To: qemu-devel
  Cc: qemu-block, michael.roth, armbru, eblake, jasowang, quintela,
	zhanghailiang, philmd, thuth, berrange, marcandre.lureau,
	pbonzini, dave, hreitz, kwolf, chen.zhang, lizhijian,
	lukasstraub2, vsementsov

v3:
01: add r-bs
02: improve commit message
03: - improve commit message
    - drop ifdefs from migration/colo.c which are not needed anymore
    - don't move migrate_colo_enabled() (now just migrate_colo()), instead modify it inplace
    - keep colo-compare.c for now (will be handled in updated 04 patch)
    - so, no colo_compare_cleanup() stub needed for now, neither migrate_colo_enabled() stub
    - keep Acked-by.
04: - improve commit message
    - rename to --disable-colo-proxy to match subsystem name in MAINTAINERS
    - don't introduce CONFIG_COLO_PROXY, it actually is not needed
    - colo-compare.c is handled now and included if any of 'replication' and 'colo-proxy' are enabled
    - so, we add colo_compare_cleanup() stub in a separate stub file

Hi all!

COLO substem seems to be useless when CONFIG_REPLICATION is unset, as we
simply don't allow to set x-colo capability in this case. So, let's not
compile in unreachable code and interface we cannot use when
CONFIG_REPLICATION is unset.

Also, provide personal configure option for COLO Proxy subsystem.

Vladimir Sementsov-Ogievskiy (4):
  block/meson.build: prefer positive condition for replication
  scripts/qapi: allow optional experimental enum values
  build: move COLO under CONFIG_REPLICATION
  configure: add --disable-colo-proxy option

 block/meson.build              |  2 +-
 hmp-commands.hx                |  2 ++
 meson_options.txt              |  2 ++
 migration/colo.c               | 28 -------------------------
 migration/meson.build          |  6 ++++--
 migration/migration-hmp-cmds.c |  2 ++
 migration/options.c            | 17 ++++++++--------
 net/meson.build                | 14 +++++++++----
 qapi/migration.json            | 12 +++++++----
 scripts/meson-buildoptions.sh  |  3 +++
 scripts/qapi/types.py          |  2 ++
 stubs/colo-compare.c           |  7 +++++++
 stubs/colo.c                   | 37 ++++++++++++++++++++++++++++++++++
 stubs/meson.build              |  2 ++
 14 files changed, 88 insertions(+), 48 deletions(-)
 create mode 100644 stubs/colo-compare.c
 create mode 100644 stubs/colo.c

-- 
2.34.1



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

end of thread, other threads:[~2023-04-28  8:54 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-27 20:29 [PATCH v3 0/4] COLO: improve build options Vladimir Sementsov-Ogievskiy
2023-04-27 20:29 ` [PATCH v3 1/4] block/meson.build: prefer positive condition for replication Vladimir Sementsov-Ogievskiy
2023-04-27 20:47   ` Lukas Straub
2023-04-27 20:29 ` [PATCH v3 2/4] scripts/qapi: allow optional experimental enum values Vladimir Sementsov-Ogievskiy
2023-04-27 20:29 ` [PATCH v3 3/4] build: move COLO under CONFIG_REPLICATION Vladimir Sementsov-Ogievskiy
2023-04-27 21:13   ` Lukas Straub
2023-04-28  7:30   ` Juan Quintela
2023-04-28  8:32     ` Vladimir Sementsov-Ogievskiy
2023-04-27 20:29 ` [PATCH v3 4/4] configure: add --disable-colo-proxy option Vladimir Sementsov-Ogievskiy
2023-04-27 21:18   ` Lukas Straub
2023-04-27 21:30     ` Vladimir Sementsov-Ogievskiy
2023-04-28  8:49       ` Zhang, Chen
2023-04-28  7:33   ` Juan Quintela
2023-04-28  8:30     ` Vladimir Sementsov-Ogievskiy
2023-04-28  8:53       ` Juan Quintela
2023-04-28  8:54       ` Juan Quintela

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