All of lore.kernel.org
 help / color / mirror / Atom feed
From: Fabiano Rosas <farosas@suse.de>
To: Lukas Straub <lukasstraub2@web.de>, qemu-devel@nongnu.org
Cc: Peter Xu <peterx@redhat.com>, Laurent Vivier <lvivier@redhat.com>,
	Paolo Bonzini <pbonzini@redhat.com>,
	Zhang Chen <zhangckid@gmail.com>,
	Hailiang Zhang <zhanghailiang@xfusion.com>,
	Markus Armbruster <armbru@redhat.com>,
	Li Zhijian <lizhijian@fujitsu.com>,
	"Dr. David Alan Gilbert" <dave@treblig.org>,
	Lukas Straub <lukasstraub2@web.de>
Subject: Re: [PATCH v4 05/16] colo: Remove ENABLE_COLO loadvm command functions
Date: Mon, 02 Feb 2026 11:42:33 -0300	[thread overview]
Message-ID: <87ldhbryue.fsf@suse.de> (raw)
In-Reply-To: <20260130-colo_unit_test_multifd-v4-5-7115ab6f0e77@web.de>

Lukas Straub <lukasstraub2@web.de> writes:

> No need for it anymore now that x-colo capability is required
> on incoming side.
>
> Signed-off-by: Lukas Straub <lukasstraub2@web.de>
> ---
>  include/migration/colo.h |  2 --
>  migration/migration.c    | 26 --------------------------
>  migration/savevm.c       | 10 ----------
>  3 files changed, 38 deletions(-)
>
> diff --git a/include/migration/colo.h b/include/migration/colo.h
> index 2496a968cc1ce709f706c0efe57e4f765f163d3c..8f94054a10760d0f2598f080643f45f9944cf051 100644
> --- a/include/migration/colo.h
> +++ b/include/migration/colo.h
> @@ -25,8 +25,6 @@ void migrate_start_colo_process(MigrationState *s);
>  bool migration_in_colo_state(void);
>  
>  /* loadvm */
> -int migration_incoming_enable_colo(Error **errp);
> -void migration_incoming_disable_colo(void);
>  bool migration_incoming_in_colo_state(void);
>  
>  COLOMode get_colo_mode(void);
> diff --git a/migration/migration.c b/migration/migration.c
> index bc8ce64ff5000b0eb634a20b22e5f3e3289b9707..3f3fc5276bb067ae1960e4b675b33208ad641b23 100644
> --- a/migration/migration.c
> +++ b/migration/migration.c
> @@ -604,31 +604,6 @@ int migrate_send_rp_req_pages(MigrationIncomingState *mis,
>      return migrate_send_rp_message_req_pages(mis, rb, start);
>  }
>  
> -static bool migration_colo_enabled;
> -void migration_incoming_disable_colo(void)
> -{
> -    ram_block_discard_disable(false);
> -    migration_colo_enabled = false;
> -}
> -
> -int migration_incoming_enable_colo(Error **errp)
> -{
> -#ifndef CONFIG_REPLICATION
> -    error_setg(errp, "ENABLE_COLO command come in migration stream, but the "
> -               "replication module is not built in");
> -    return -ENOTSUP;
> -#endif
> -
> -    if (!migrate_colo()) {
> -        error_setg(errp, "ENABLE_COLO command come in migration stream"
> -                   ", but x-colo capability is not set");
> -        return -EINVAL;
> -    }
> -
> -    migration_colo_enabled = true;
> -    return 0;
> -}
> -
>  void migrate_add_address(SocketAddress *address)
>  {
>      MigrationIncomingState *mis = migration_incoming_get_current();
> @@ -735,7 +710,6 @@ static void process_incoming_migration_bh(void *opaque)
>              runstate_set(RUN_STATE_PAUSED);
>          }
>      } else if (migrate_colo()) {
> -        migration_incoming_disable_colo();
>          vm_start();
>      } else {
>          runstate_set(global_state_get_runstate());
> diff --git a/migration/savevm.c b/migration/savevm.c
> index 0353ac2d0de819b6547a1f771e6a4c3b8fb1e4ef..413688b75f4bee6cb10878eb51886cf6ba14872d 100644
> --- a/migration/savevm.c
> +++ b/migration/savevm.c
> @@ -2403,13 +2403,6 @@ static int loadvm_handle_recv_bitmap(MigrationIncomingState *mis,
>      return 0;
>  }
>  
> -static int loadvm_process_enable_colo(MigrationIncomingState *mis,
> -                                      Error **errp)
> -{
> -    ERRP_GUARD();
> -    return migration_incoming_enable_colo(errp);
> -}
> -
>  static int loadvm_postcopy_handle_switchover_start(Error **errp)
>  {
>      SaveStateEntry *se;
> @@ -2528,9 +2521,6 @@ static int loadvm_process_command(QEMUFile *f, Error **errp)
>      case MIG_CMD_RECV_BITMAP:
>          return loadvm_handle_recv_bitmap(mis, len, errp);
>  
> -    case MIG_CMD_ENABLE_COLO:
> -        return loadvm_process_enable_colo(mis, errp);
> -
>      case MIG_CMD_SWITCHOVER_START:
>          return loadvm_postcopy_handle_switchover_start(errp);
>      }

Reviewed-by: Fabiano Rosas <farosas@suse.de>


  reply	other threads:[~2026-02-02 14:42 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-30 12:14 [PATCH v4 00/16] migration: Add COLO multifd support and COLO migration unit test Lukas Straub
2026-01-30 12:14 ` [PATCH v4 01/16] MAINTAINERS: Add myself as maintainer for COLO migration framework Lukas Straub
2026-01-30 12:14 ` [PATCH v4 02/16] MAINTAINERS: Remove Hailiang Zhang from " Lukas Straub
2026-01-30 12:14 ` [PATCH v4 03/16] colo: Setup ram cache in normal migration path Lukas Straub
2026-02-02 14:41   ` Fabiano Rosas
2026-01-30 12:14 ` [PATCH v4 04/16] colo: Replace migration_incoming_colo_enabled() with migrate_colo() Lukas Straub
2026-02-02 14:41   ` Fabiano Rosas
2026-01-30 12:14 ` [PATCH v4 05/16] colo: Remove ENABLE_COLO loadvm command functions Lukas Straub
2026-02-02 14:42   ` Fabiano Rosas [this message]
2026-01-30 12:14 ` [PATCH v4 06/16] colo: Don't send ENABLE_COLO command Lukas Straub
2026-02-02 14:43   ` Fabiano Rosas
2026-01-30 12:14 ` [PATCH v4 07/16] ram: Remove colo special-casing Lukas Straub
2026-02-02 14:43   ` Fabiano Rosas
2026-01-30 12:14 ` [PATCH v4 08/16] Move ram state receive into multifd_ram_state_recv() Lukas Straub
2026-01-30 12:14 ` [PATCH v4 09/16] multifd: Add COLO support Lukas Straub
2026-02-02 14:49   ` Fabiano Rosas
2026-01-30 12:14 ` [PATCH v4 10/16] Call colo_release_ram_cache() after multifd threads terminate Lukas Straub
2026-02-02 14:50   ` Fabiano Rosas
2026-01-30 12:14 ` [PATCH v4 11/16] colo: Fix crash during device vmstate load Lukas Straub
2026-01-30 12:14 ` [PATCH v4 12/16] migration-test: Add COLO migration unit test Lukas Straub
2026-01-30 12:14 ` [PATCH v4 13/16] Convert colo main documentation to restructuredText Lukas Straub
2026-02-02 15:01   ` Fabiano Rosas
2026-01-30 12:14 ` [PATCH v4 14/16] qemu-colo.rst: Miscellaneous changes Lukas Straub
2026-02-02 15:16   ` Fabiano Rosas
2026-01-30 12:14 ` [PATCH v4 15/16] qemu-colo.rst: Add my copyright Lukas Straub
2026-02-02 15:17   ` Fabiano Rosas
2026-01-30 12:14 ` [PATCH v4 16/16] qemu-colo.rst: Simplify the block replication setup Lukas Straub

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ldhbryue.fsf@suse.de \
    --to=farosas@suse.de \
    --cc=armbru@redhat.com \
    --cc=dave@treblig.org \
    --cc=lizhijian@fujitsu.com \
    --cc=lukasstraub2@web.de \
    --cc=lvivier@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=peterx@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=zhangckid@gmail.com \
    --cc=zhanghailiang@xfusion.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.