qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v3 4/4] configure: add --disable-colo-proxy option


From: Vladimir Sementsov-Ogievskiy
Subject: Re: [PATCH v3 4/4] configure: add --disable-colo-proxy option
Date: Fri, 28 Apr 2023 00:30:29 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0

On 28.04.23 00:18, Lukas Straub wrote:
On Thu, 27 Apr 2023 23:29:46 +0300
Vladimir Sementsov-Ogievskiy<vsementsov@yandex-team.ru>  wrote:

Add option to not build filter-mirror, filter-rewriter and
colo-compare when they are not needed.

There could be more agile configuration, for example add separate
options for each filter, but that may be done in future on demand. The
aim of this patch is to make possible to disable the whole COLO Proxy
subsystem.

Signed-off-by: Vladimir Sementsov-Ogievskiy<vsementsov@yandex-team.ru>
---
  meson_options.txt             |  2 ++
  net/meson.build               | 14 ++++++++++----
  scripts/meson-buildoptions.sh |  3 +++
  stubs/colo-compare.c          |  7 +++++++
  stubs/meson.build             |  1 +
  5 files changed, 23 insertions(+), 4 deletions(-)
  create mode 100644 stubs/colo-compare.c

diff --git a/meson_options.txt b/meson_options.txt
index 2471dd02da..b59e7ae342 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -289,6 +289,8 @@ option('live_block_migration', type: 'feature', value: 
'auto',
         description: 'block migration in the main migration stream')
  option('replication', type: 'feature', value: 'auto',
         description: 'replication support')
+option('colo_proxy', type: 'feature', value: 'auto',
+       description: 'colo-proxy support')
  option('bochs', type: 'feature', value: 'auto',
         description: 'bochs image format support')
  option('cloop', type: 'feature', value: 'auto',
diff --git a/net/meson.build b/net/meson.build
index 87afca3e93..4cfc850c69 100644
--- a/net/meson.build
+++ b/net/meson.build
@@ -1,13 +1,9 @@
  softmmu_ss.add(files(
    'announce.c',
    'checksum.c',
-  'colo-compare.c',
-  'colo.c',
    'dump.c',
    'eth.c',
    'filter-buffer.c',
-  'filter-mirror.c',
-  'filter-rewriter.c',
    'filter.c',
    'hub.c',
    'net-hmp-cmds.c',
@@ -19,6 +15,16 @@ softmmu_ss.add(files(
    'util.c',
  ))
+if get_option('replication').allowed() or \
+    get_option('colo_proxy').allowed()
+  softmmu_ss.add(files('colo-compare.c'))
+  softmmu_ss.add(files('colo.c'))
+endif
+
+if get_option('colo_proxy').allowed()
+  softmmu_ss.add(files('filter-mirror.c', 'filter-rewriter.c'))
+endif
+
The last discussion didn't really come to a conclusion, but I still
think that 'filter-mirror.c' (which also contains filter-redirect)
should be left unchanged.


OK for me, I'll wait a bit for more comments and resend with

 @@ -22,7 +22,7 @@ if get_option('replication').allowed() or \
  endif
if get_option('colo_proxy').allowed()
 -  softmmu_ss.add(files('filter-mirror.c', 'filter-rewriter.c'))
 +  softmmu_ss.add(files('filter-rewriter.c'))
  endif
softmmu_ss.add(when: 'CONFIG_TCG', if_true: files('filter-replay.c'))


applied here, if no other strong opinion.

--
Best regards,
Vladimir




reply via email to

[Prev in Thread] Current Thread [Next in Thread]