All of lore.kernel.org
 help / color / mirror / Atom feed
From: Markus Armbruster <armbru@redhat.com>
To: Fabiano Rosas <farosas@suse.de>
Cc: qemu-devel@nongnu.org,
	"Daniel P . Berrangé" <berrange@redhat.com>,
	"Peter Xu" <peterx@redhat.com>,
	devel@lists.libvirt.org, "Paolo Bonzini" <pbonzini@redhat.com>,
	"Marc-André Lureau" <marcandre.lureau@redhat.com>,
	"Thomas Huth" <thuth@redhat.com>,
	"Philippe Mathieu-Daudé" <philmd@linaro.org>,
	"Hailiang Zhang" <zhanghailiang@xfusion.com>,
	"Eric Blake" <eblake@redhat.com>
Subject: Re: [PATCH 4/6] migration: Remove block migration
Date: Fri, 26 Apr 2024 16:15:31 +0200	[thread overview]
Message-ID: <87cyqcrz0c.fsf@pond.sub.org> (raw)
In-Reply-To: <20240425150939.19268-5-farosas@suse.de> (Fabiano Rosas's message of "Thu, 25 Apr 2024 12:09:37 -0300")

Fabiano Rosas <farosas@suse.de> writes:

> The block migration has been considered obsolete since QEMU 8.2 in
> favor of the more flexible storage migration provided by the
> blockdev-mirror driver. Two releases have passed so now it's time to
> remove it.
>
> Deprecation commit 66db46ca83 ("migration: Deprecate block
> migration").
>
> Signed-off-by: Fabiano Rosas <farosas@suse.de>

[...]

> diff --git a/migration/migration.c b/migration/migration.c
> index a3dc8a7974..0f4df893e5 100644
> --- a/migration/migration.c
> +++ b/migration/migration.c

[...]

> @@ -1997,8 +1983,6 @@ static bool migrate_prepare(MigrationState *s, bool resume, Error **errp)
>          }
>      }
>  
> -    s->must_remove_block_options = true;
> -
>      if (migrate_init(s, errp)) {
>          return false;
>      }
> @@ -2080,7 +2064,6 @@ void qmp_migrate(const char *uri, bool has_channels,
>                     "a valid migration protocol");
>          migrate_set_state(&s->state, MIGRATION_STATUS_SETUP,
>                            MIGRATION_STATUS_FAILED);
> -        block_cleanup_parameters();
>      }
>  
>      if (local_err) {
> diff --git a/migration/options.c b/migration/options.c
> index 638eeeb9a0..5049bfb78e 100644
> --- a/migration/options.c
> +++ b/migration/options.c

[...]

> @@ -942,17 +917,6 @@ ZeroPageDetection migrate_zero_page_detection(void)
>  
>  /* parameters helpers */
>  
> -void block_cleanup_parameters(void)
> -{
> -    MigrationState *s = migrate_get_current();
> -
> -    if (s->must_remove_block_options) {
> -        /* setting to false can never fail */
> -        migrate_cap_set(MIGRATION_CAPABILITY_BLOCK, false, &error_abort);
> -        s->must_remove_block_options = false;
> -    }
> -}
> -

MigrationState member @must_remove_block_options is now unused.  Please
delete it.

>  AnnounceParameters *migrate_announce_params(void)
>  {
>      static AnnounceParameters ap;

[...]

With that:
Reviewed-by: Markus Armbruster <armbru@redhat.com>



  reply	other threads:[~2024-04-26 14:16 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-25 15:09 [PATCH 0/6] migration removals & deprecations Fabiano Rosas
2024-04-25 15:09 ` [PATCH 1/6] migration: Remove 'skipped' field from MigrationStats Fabiano Rosas
2024-04-26  5:26   ` Markus Armbruster
2024-04-25 15:09 ` [PATCH 2/6] migration: Remove 'inc' option from migrate command Fabiano Rosas
2024-04-26 13:25   ` Markus Armbruster
2024-04-26 14:07     ` Markus Armbruster
2024-04-25 15:09 ` [PATCH 3/6] migration: Remove 'blk/-b' option from migrate commands Fabiano Rosas
2024-04-26 13:26   ` Markus Armbruster
2024-04-26 14:05     ` Markus Armbruster
2024-04-26 14:19       ` Fabiano Rosas
2024-04-25 15:09 ` [PATCH 4/6] migration: Remove block migration Fabiano Rosas
2024-04-26 14:15   ` Markus Armbruster [this message]
2024-04-25 15:09 ` [PATCH 5/6] migration: Remove non-multifd compression Fabiano Rosas
2024-04-26 14:27   ` Markus Armbruster
2024-04-25 15:09 ` [PATCH 6/6] migration: Deprecate fd: for file migration Fabiano Rosas
2024-04-26  6:02 ` [PATCH 0/6] migration removals & deprecations Markus Armbruster
2024-04-26 12:51   ` Fabiano Rosas
2024-04-26 13:08     ` Markus Armbruster
2024-04-26 13:15       ` Fabiano Rosas

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=87cyqcrz0c.fsf@pond.sub.org \
    --to=armbru@redhat.com \
    --cc=berrange@redhat.com \
    --cc=devel@lists.libvirt.org \
    --cc=eblake@redhat.com \
    --cc=farosas@suse.de \
    --cc=marcandre.lureau@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=peterx@redhat.com \
    --cc=philmd@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=thuth@redhat.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.