]> git.proxmox.com Git - mirror_qemu.git/commitdiff
migrate-start-postcopy: Improve text
authorDr. David Alan Gilbert <dgilbert@redhat.com>
Thu, 12 Nov 2015 11:34:44 +0000 (11:34 +0000)
committerJuan Quintela <quintela@redhat.com>
Thu, 12 Nov 2015 16:54:39 +0000 (17:54 +0100)
Improve the text in both the qapi-schema and hmp help to point out
you need to set the postcopy-ram capability prior to issuing
migrate-start-postcopy.

Also fix the text of the migrate_start_postcopy error that
deals with capabilities.

Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Acked-by: Jason J. Herne <jjherne@linux.vnet.ibm.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
hmp-commands.hx
migration/migration.c
qapi-schema.json

index f3de4076471b65b55430912aa575935bba63083d..bb52e4d3bd435a68e2ba3f11976a98eedf6746d4 100644 (file)
@@ -1025,7 +1025,9 @@ ETEXI
         .name       = "migrate_start_postcopy",
         .args_type  = "",
         .params     = "",
-        .help       = "Switch migration to postcopy mode",
+        .help       = "Followup to a migration command to switch the migration"
+                      " to postcopy mode. The x-postcopy-ram capability must "
+                      "be set before the original migration command.",
         .mhandler.cmd = hmp_migrate_start_postcopy,
     },
 
index 5df490adf6b52b69662834488a18a3d759923e6f..9bd2ce73adf580b1e67d0c2d757ac5d7d9cdb94c 100644 (file)
@@ -768,7 +768,7 @@ void qmp_migrate_start_postcopy(Error **errp)
     MigrationState *s = migrate_get_current();
 
     if (!migrate_postcopy_ram()) {
-        error_setg(errp, "Enable postcopy with migration_set_capability before"
+        error_setg(errp, "Enable postcopy with migrate_set_capability before"
                          " the start of migration");
         return;
     }
index c3f95ab1708447d6e9eb399150cc2c3cb7f39247..a1514cac67444d89911b616e7e7b34febd0f8949 100644 (file)
 ##
 # @migrate-start-postcopy
 #
-# Switch migration to postcopy mode
+# Followup to a migration command to switch the migration to postcopy mode.
+# The x-postcopy-ram capability must be set before the original migration
+# command.
 #
 # Since: 2.5
 { 'command': 'migrate-start-postcopy' }