All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v2 1/1] migrate-start-postcopy: Improve text
@ 2015-11-12 11:34 Dr. David Alan Gilbert (git)
  2015-11-12 14:49 ` Jason J. Herne
  2015-11-12 15:17 ` Eric Blake
  0 siblings, 2 replies; 4+ messages in thread
From: Dr. David Alan Gilbert (git) @ 2015-11-12 11:34 UTC (permalink / raw)
  To: qemu-devel, quintela, amit.shah; +Cc: borntraeger, bharata

From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>

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>
---
v2
  Updated text to Erik's suggestion
  Fixed error text error spotted by Christian

 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 8939b98..a3e5cb7 100644
--- a/hmp-commands.hx
+++ b/hmp-commands.hx
@@ -1011,7 +1011,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 8c3a42a..3973fa6 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

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] [PATCH v2 1/1] migrate-start-postcopy: Improve text
  2015-11-12 11:34 [Qemu-devel] [PATCH v2 1/1] migrate-start-postcopy: Improve text Dr. David Alan Gilbert (git)
@ 2015-11-12 14:49 ` Jason J. Herne
  2015-11-12 15:17 ` Eric Blake
  1 sibling, 0 replies; 4+ messages in thread
From: Jason J. Herne @ 2015-11-12 14:49 UTC (permalink / raw)
  To: Dr. David Alan Gilbert (git), qemu-devel, quintela, amit.shah
  Cc: borntraeger, bharata

On 11/12/2015 06:34 AM, Dr. David Alan Gilbert (git) wrote:
> From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
>
> 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>
> ---
> v2
>    Updated text to Erik's suggestion
>    Fixed error text error spotted by Christian
>
>   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 8939b98..a3e5cb7 100644
> --- a/hmp-commands.hx
> +++ b/hmp-commands.hx
> @@ -1011,7 +1011,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 8c3a42a..3973fa6 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' }
>

I like the rewording especially in the help text. This will make it far 
clearer to the user.

fwiw, Acked-by: Jason J. Herne <jjherne@linux.vnet.ibm.com>

-- 
-- Jason J. Herne (jjherne@linux.vnet.ibm.com)

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] [PATCH v2 1/1] migrate-start-postcopy: Improve text
  2015-11-12 11:34 [Qemu-devel] [PATCH v2 1/1] migrate-start-postcopy: Improve text Dr. David Alan Gilbert (git)
  2015-11-12 14:49 ` Jason J. Herne
@ 2015-11-12 15:17 ` Eric Blake
  2015-11-12 17:26   ` Dr. David Alan Gilbert
  1 sibling, 1 reply; 4+ messages in thread
From: Eric Blake @ 2015-11-12 15:17 UTC (permalink / raw)
  To: Dr. David Alan Gilbert (git), qemu-devel, quintela, amit.shah
  Cc: borntraeger, bharata

[-- Attachment #1: Type: text/plain, Size: 1152 bytes --]

On 11/12/2015 04:34 AM, Dr. David Alan Gilbert (git) wrote:
> From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
> 
> 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>
> ---
> v2
>   Updated text to Erik's suggestion

It's Eric, but you're not the first (nor the last) to make that typo.

> +++ 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.

Maybe "Followup to the migrate command to switch the migration..."

But the wording you have also covers the case if we add something other
than just 'migrate' to start a migration, so I'm fine either way.

Reviewed-by: Eric Blake <eblake@redhat.com>

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] [PATCH v2 1/1] migrate-start-postcopy: Improve text
  2015-11-12 15:17 ` Eric Blake
@ 2015-11-12 17:26   ` Dr. David Alan Gilbert
  0 siblings, 0 replies; 4+ messages in thread
From: Dr. David Alan Gilbert @ 2015-11-12 17:26 UTC (permalink / raw)
  To: Eric Blake; +Cc: amit.shah, borntraeger, bharata, qemu-devel, quintela

* Eric Blake (eblake@redhat.com) wrote:
> On 11/12/2015 04:34 AM, Dr. David Alan Gilbert (git) wrote:
> > From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
> > 
> > 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>
> > ---
> > v2
> >   Updated text to Erik's suggestion
> 
> It's Eric, but you're not the first (nor the last) to make that typo.

Oops sorry about that.


> > +++ 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.
> 
> Maybe "Followup to the migrate command to switch the migration..."
> 
> But the wording you have also covers the case if we add something other
> than just 'migrate' to start a migration, so I'm fine either way.
> 
> Reviewed-by: Eric Blake <eblake@redhat.com>

Thanks,

Dave

> 
> -- 
> Eric Blake   eblake redhat com    +1-919-301-3266
> Libvirt virtualization library http://libvirt.org
> 


--
Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-11-12 17:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-12 11:34 [Qemu-devel] [PATCH v2 1/1] migrate-start-postcopy: Improve text Dr. David Alan Gilbert (git)
2015-11-12 14:49 ` Jason J. Herne
2015-11-12 15:17 ` Eric Blake
2015-11-12 17:26   ` Dr. David Alan Gilbert

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.