]> git.proxmox.com Git - mirror_qemu.git/commitdiff
migration: migrate 'inc' command option is deprecated.
authorJuan Quintela <quintela@redhat.com>
Wed, 18 Oct 2023 11:55:10 +0000 (13:55 +0200)
committerJuan Quintela <quintela@redhat.com>
Tue, 31 Oct 2023 07:44:33 +0000 (08:44 +0100)
Use blockdev-mirror with NBD instead.

Reviewed-by: Thomas Huth <thuth@redhat.com>
Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Message-ID: <20231018115513.2163-3-quintela@redhat.com>

docs/about/deprecated.rst
migration/migration-hmp-cmds.c
migration/migration.c
qapi/migration.json

index 4e0eb2fe0211beafc3e2d2825b0a9108fe8839e2..1c8c8c34c49ad13c0d77ff13a994a34d4d425d3c 100644 (file)
@@ -469,3 +469,11 @@ Migration
 ``skipped`` field in Migration stats has been deprecated.  It hasn't
 been used for more than 10 years.
 
+``inc`` migrate command option (since 8.2)
+''''''''''''''''''''''''''''''''''''''''''
+
+Use blockdev-mirror with NBD instead.
+
+As an intermediate step the ``inc`` functionality can be achieved by
+setting the ``block-incremental`` migration parameter to ``true``.
+But this parameter is also deprecated.
index a82597f18e4614b4b300390e35996b15d19f231c..83176f5bae097d3e4f40610b10b63b27cbc280d6 100644 (file)
@@ -745,6 +745,11 @@ void hmp_migrate(Monitor *mon, const QDict *qdict)
     const char *uri = qdict_get_str(qdict, "uri");
     Error *err = NULL;
 
+    if (inc) {
+        warn_report("option '-i' is deprecated;"
+                    " use blockdev-mirror with NBD instead");
+    }
+
     qmp_migrate(uri, !!blk, blk, !!inc, inc,
                 false, false, true, resume, &err);
     if (hmp_handle_error(mon, err)) {
index 67547eb6a1d2c777d87d7eb402ea1ddc40b334c7..06a706ad9017591d741f50f25219fe07fc0a31a5 100644 (file)
@@ -1620,6 +1620,11 @@ static bool migrate_prepare(MigrationState *s, bool blk, bool blk_inc,
 {
     Error *local_err = NULL;
 
+    if (blk_inc) {
+        warn_report("parameter 'inc' is deprecated;"
+                    " use blockdev-mirror with NBD instead");
+    }
+
     if (resume) {
         if (s->state != MIGRATION_STATUS_POSTCOPY_PAUSED) {
             error_setg(errp, "Cannot resume if there is no "
index db3df12d6c1c96b16f2eab790cd6bd78fcd656ea..fa7f4f2575185ec3806a52f1cb44d457ad3a37f3 100644 (file)
 #
 # @resume: resume one paused migration, default "off". (since 3.0)
 #
+# Features:
+#
+# @deprecated: Member @inc is deprecated.  Use blockdev-mirror with
+#     NBD instead.
+#
 # Returns: nothing on success
 #
 # Since: 0.14
 # <- { "return": {} }
 ##
 { 'command': 'migrate',
-  'data': {'uri': 'str', '*blk': 'bool', '*inc': 'bool',
+  'data': {'uri': 'str', '*blk': 'bool',
+           '*inc': { 'type': 'bool', 'features': [ 'deprecated' ] },
            '*detach': 'bool', '*resume': 'bool' } }
 
 ##