Received: from eggs.gnu.org ([2001:4830:134:3::10]:46856) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZwvXw-0006Gn-HT for qemu-devel@nongnu.org; Thu, 12 Nov 2015 12:20:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZwvXv-0005iW-J8 for qemu-devel@nongnu.org; Thu, 12 Nov 2015 12:20:28 -0500 Received: from mx1.redhat.com ([209.132.183.28]:41532) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZwvXv-0005iR-DE for qemu-devel@nongnu.org; Thu, 12 Nov 2015 12:20:27 -0500 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (Postfix) with ESMTPS id F2536461C8 for ; Thu, 12 Nov 2015 17:20:26 +0000 (UTC) From: Juan Quintela Date: Thu, 12 Nov 2015 18:20:15 +0100 Message-Id: <1447348816-17152-6-git-send-email-quintela@redhat.com> In-Reply-To: <1447348816-17152-1-git-send-email-quintela@redhat.com> References: <1447348816-17152-1-git-send-email-quintela@redhat.com> Subject: [Qemu-devel] [PULL 5/6] migrate-start-postcopy: Improve text List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: amit.shah@redhat.com, dgilbert@redhat.com From: "Dr. David Alan Gilbert" 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 Reviewed-by: Juan Quintela Acked-by: Jason J. Herne Reviewed-by: Eric Blake Signed-off-by: Juan Quintela --- hmp-commands.hx | 4 +++- migration/migration.c | 2 +- qapi-schema.json | 4 +++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/hmp-commands.hx b/hmp-commands.hx index f3de407..bb52e4d 100644 --- a/hmp-commands.hx +++ b/hmp-commands.hx @@ -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, }, diff --git a/migration/migration.c b/migration/migration.c index 5df490a..9bd2ce7 100644 --- a/migration/migration.c +++ b/migration/migration.c @@ -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; } diff --git a/qapi-schema.json b/qapi-schema.json index c3f95ab..a1514ca 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -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' } -- 2.5.0