Commit a54d340b authored by Dr. David Alan Gilbert's avatar Dr. David Alan Gilbert Committed by Juan Quintela
Browse files

migrate-start-postcopy: Improve text



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: default avatarDr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: default avatarJuan Quintela <quintela@redhat.com>
Acked-by: default avatarJason J. Herne <jjherne@linux.vnet.ibm.com>
Reviewed-by: default avatarEric Blake <eblake@redhat.com>
Signed-off-by: default avatarJuan Quintela <quintela@redhat.com>
parent a3b6ff6d
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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,
    },

+1 −1
Original line number Diff line number Diff line
@@ -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;
    }
+3 −1
Original line number Diff line number Diff line
@@ -706,7 +706,9 @@
##
# @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' }