Skip to contentSkip to conversation

migration: improve documentation of postcopy-ram

PATCH In review Greg Kurz 3 participants 6 messages Feb 7, 2018 – Feb 14, 2018

lore
Share & tools
lore

Greg Kurz

author
#0 lore raw

PATCH 1/1 migration: improve documentation of postcopy-ram

This capability must have the same value on both source and destination, otherwise migration fails (commit 875fcd013ab6 "migration: incoming postcopy advise sanity checks").

Let's write it down in various places where postcopy-ram is documented.

---
 docs/devel/migration.rst |    4 ++--
 hmp-commands.hx          |    3 ++-
 qapi/migration.json      |   10 ++++++----
 3 files changed, 10 insertions(+), 7 deletions(-)
docs/devel/migration.rst +2 -2
index bf97080dac2f..9d1b7657f0cf 100644
@@ -387,8 +387,8 @@ doesn't finish in a given time the switch is made to postcopy.
 Enabling postcopy
 -----------------
 
-To enable postcopy, issue this command on the monitor prior to the
-start of migration:
+To enable postcopy, issue this command on the monitor (both source and
+destination) prior to the start of migration:
 
 ``migrate_set_capability postcopy-ram on``
 
hmp-commands.hx +2 -1
index 15620c94d3fc..d26eb4119b9d 100644
@@ -1041,7 +1041,8 @@ ETEXI
         .params     = "",
         .help       = "Followup to a migration command to switch the migration"
                       " to postcopy mode. The postcopy-ram capability must "
-                      "be set before the original migration command.",
+                      "be set on both source and destination before the "
+                      "original migration command .",
         .cmd        = hmp_migrate_start_postcopy,
     },
 
qapi/migration.json +6 -4
index 4cd3d1315884..7f465a1902ce 100644
@@ -327,8 +327,10 @@
 #          to speed up convergence of RAM migration. (since 1.6)
 #
 # @postcopy-ram: Start executing on the migration target before all of RAM has
-#          been migrated, pulling the remaining pages along as needed. NOTE: If
-#          the migration fails during postcopy the VM will fail.  (since 2.6)
+#          been migrated, pulling the remaining pages along as needed. The
+#          capacity must have the same setting on both source and target
+#          or migration will not even start. NOTE: If the migration fails during
+#          postcopy the VM will fail.  (since 2.6)
 #
 # @x-colo: If enabled, migration will never end, and the state of the VM on the
 #        primary side will be migrated continuously to the VM on secondary
@@ -742,8 +744,8 @@
 # @migrate-start-postcopy:
 #
 # Followup to a migration command to switch the migration to postcopy mode.
-# The postcopy-ram capability must be set before the original migration
-# command.
+# The postcopy-ram capability must be set on both source and destination
+# before the original migration command.
 #
 # Since: 2.5
 #
Reviewed-by on v1 1/1
#1 lore raw
Quoted 4 lines · Greg Kurz

This capability must have the same value on both source and destination, otherwise migration fails (commit 875fcd013ab6 "migration: incoming postcopy advise sanity checks").

Quoted 8 lines

Let's write it down in various places where postcopy-ram is documented.

---
  docs/devel/migration.rst |    4 ++--
  hmp-commands.hx          |    3 ++-
  qapi/migration.json      |   10 ++++++----
  3 files changed, 10 insertions(+), 7 deletions(-)
Signature · 3 lines
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org
Reviewed-by on v1 1/1
#2 lore raw
In reply to Greg Kurz
Quoted 7 lines · * Greg Kurz ([email protected]) wrote:

This capability must have the same value on both source and destination, otherwise migration fails (commit 875fcd013ab6 "migration: incoming postcopy advise sanity checks").

Let's write it down in various places where postcopy-ram is documented.

Thanks,

Quoted 54 lines
---
 docs/devel/migration.rst |    4 ++--
 hmp-commands.hx          |    3 ++-
 qapi/migration.json      |   10 ++++++----
 3 files changed, 10 insertions(+), 7 deletions(-)
docs/devel/migration.rst +2 -2
index bf97080dac2f..9d1b7657f0cf 100644
@@ -387,8 +387,8 @@ doesn't finish in a given time the switch is made to postcopy.
 Enabling postcopy
 -----------------
 
-To enable postcopy, issue this command on the monitor prior to the
-start of migration:
+To enable postcopy, issue this command on the monitor (both source and
+destination) prior to the start of migration:
 
 ``migrate_set_capability postcopy-ram on``
 
hmp-commands.hx +2 -1
index 15620c94d3fc..d26eb4119b9d 100644
@@ -1041,7 +1041,8 @@ ETEXI
         .params     = "",
         .help       = "Followup to a migration command to switch the migration"
                       " to postcopy mode. The postcopy-ram capability must "
-                      "be set before the original migration command.",
+                      "be set on both source and destination before the "
+                      "original migration command .",
         .cmd        = hmp_migrate_start_postcopy,
     },
 
qapi/migration.json +4 -2
index 4cd3d1315884..7f465a1902ce 100644
@@ -327,8 +327,10 @@
 #          to speed up convergence of RAM migration. (since 1.6)
 #
 # @postcopy-ram: Start executing on the migration target before all of RAM has
-#          been migrated, pulling the remaining pages along as needed. NOTE: If
-#          the migration fails during postcopy the VM will fail.  (since 2.6)
+#          been migrated, pulling the remaining pages along as needed. The
+#          capacity must have the same setting on both source and target
+#          or migration will not even start. NOTE: If the migration fails during
+#          postcopy the VM will fail.  (since 2.6)
 #
 # @x-colo: If enabled, migration will never end, and the state of the VM on the
 #        primary side will be migrated continuously to the VM on secondary

qapi/migration.json line 751

Quoted 10 lines
qapi/migration.json +2 -2
@@ -742,8 +744,8 @@
 # @migrate-start-postcopy:
 #
 # Followup to a migration command to switch the migration to postcopy mode.
-# The postcopy-ram capability must be set before the original migration
-# command.
+# The postcopy-ram capability must be set on both source and destination
+# before the original migration command.
 #
 # Since: 2.5
 #

--
Dr. David Alan Gilbert / [email protected] / Manchester, UK

author
#3 lore raw
Quoted 5 lines · On Wed, 7 Feb 2018 15:55:01 +0000 "Dr. David Alan Gilbert"…
Quoted 4 lines · * Greg Kurz ([email protected]) wrote:

This capability must have the same value on both source and destination, otherwise migration fails (commit 875fcd013ab6 "migration: incoming postcopy advise sanity checks").

Quoted 8 lines
Quoted 3 lines

Let's write it down in various places where postcopy-ram is documented.

Thanks,

Who should pick this up ?

Quoted 67 lines
Quoted 54 lines
---
 docs/devel/migration.rst |    4 ++--
 hmp-commands.hx          |    3 ++-
 qapi/migration.json      |   10 ++++++----
 3 files changed, 10 insertions(+), 7 deletions(-)
docs/devel/migration.rst +2 -2
index bf97080dac2f..9d1b7657f0cf 100644
@@ -387,8 +387,8 @@ doesn't finish in a given time the switch is made to postcopy.
 Enabling postcopy
 -----------------
 
-To enable postcopy, issue this command on the monitor prior to the
-start of migration:
+To enable postcopy, issue this command on the monitor (both source and
+destination) prior to the start of migration:
 
 ``migrate_set_capability postcopy-ram on``
 
hmp-commands.hx +2 -1
index 15620c94d3fc..d26eb4119b9d 100644
@@ -1041,7 +1041,8 @@ ETEXI
         .params     = "",
         .help       = "Followup to a migration command to switch the migration"
                       " to postcopy mode. The postcopy-ram capability must "
-                      "be set before the original migration command.",
+                      "be set on both source and destination before the "
+                      "original migration command .",
         .cmd        = hmp_migrate_start_postcopy,
     },
 
qapi/migration.json +4 -2
index 4cd3d1315884..7f465a1902ce 100644
@@ -327,8 +327,10 @@
 #          to speed up convergence of RAM migration. (since 1.6)
 #
 # @postcopy-ram: Start executing on the migration target before all of RAM has
-#          been migrated, pulling the remaining pages along as needed. NOTE: If
-#          the migration fails during postcopy the VM will fail.  (since 2.6)
+#          been migrated, pulling the remaining pages along as needed. The
+#          capacity must have the same setting on both source and target
+#          or migration will not even start. NOTE: If the migration fails during
+#          postcopy the VM will fail.  (since 2.6)
 #
 # @x-colo: If enabled, migration will never end, and the state of the VM on the
 #        primary side will be migrated continuously to the VM on secondary

qapi/migration.json line 751

Quoted 10 lines
qapi/migration.json +2 -2
@@ -742,8 +744,8 @@
 # @migrate-start-postcopy:
 #
 # Followup to a migration command to switch the migration to postcopy mode.
-# The postcopy-ram capability must be set before the original migration
-# command.
+# The postcopy-ram capability must be set on both source and destination
+# before the original migration command.
 #
 # Since: 2.5
 #

--
Dr. David Alan Gilbert / [email protected] / Manchester, UK

#4 lore raw
Quoted 10 lines · * Greg Kurz ([email protected]) wrote:
Quoted 7 lines · On Wed, 7 Feb 2018 15:55:01 +0000 "Dr. David Alan Gilbert"…
Quoted 6 lines · * Greg Kurz ([email protected]) wrote:

This capability must have the same value on both source and destination, otherwise migration fails (commit 875fcd013ab6 "migration: incoming postcopy advise sanity checks").

Let's write it down in various places where postcopy-ram is documented.

Quoted 8 lines
Quoted 6 lines
Quoted 1 line

Thanks,

Who should pick this up ?

I was going to pick it up in a migration pull today.

Dave

Quoted 59 lines
Quoted 59 lines
Quoted 59 lines
---
 docs/devel/migration.rst |    4 ++--
 hmp-commands.hx          |    3 ++-
 qapi/migration.json      |   10 ++++++----
 3 files changed, 10 insertions(+), 7 deletions(-)
docs/devel/migration.rst +2 -2
index bf97080dac2f..9d1b7657f0cf 100644
@@ -387,8 +387,8 @@ doesn't finish in a given time the switch is made to postcopy.
 Enabling postcopy
 -----------------
 
-To enable postcopy, issue this command on the monitor prior to the
-start of migration:
+To enable postcopy, issue this command on the monitor (both source and
+destination) prior to the start of migration:
 
 ``migrate_set_capability postcopy-ram on``
 
hmp-commands.hx +2 -1
index 15620c94d3fc..d26eb4119b9d 100644
@@ -1041,7 +1041,8 @@ ETEXI
         .params     = "",
         .help       = "Followup to a migration command to switch the migration"
                       " to postcopy mode. The postcopy-ram capability must "
-                      "be set before the original migration command.",
+                      "be set on both source and destination before the "
+                      "original migration command .",
         .cmd        = hmp_migrate_start_postcopy,
     },
 
qapi/migration.json +5 -4
index 4cd3d1315884..7f465a1902ce 100644
@@ -327,8 +327,10 @@
 #          to speed up convergence of RAM migration. (since 1.6)
 #
 # @postcopy-ram: Start executing on the migration target before all of RAM has
-#          been migrated, pulling the remaining pages along as needed. NOTE: If
-#          the migration fails during postcopy the VM will fail.  (since 2.6)
+#          been migrated, pulling the remaining pages along as needed. The
+#          capacity must have the same setting on both source and target
+#          or migration will not even start. NOTE: If the migration fails during
+#          postcopy the VM will fail.  (since 2.6)
 #
 # @x-colo: If enabled, migration will never end, and the state of the VM on the
 #        primary side will be migrated continuously to the VM on secondary
@@ -742,8 +744,8 @@
 # @migrate-start-postcopy:
 #
 # Followup to a migration command to switch the migration to postcopy mode.
-# The postcopy-ram capability must be set before the original migration
-# command.
+# The postcopy-ram capability must be set on both source and destination
Quoted 9 lines
Quoted 8 lines

qapi/migration.json line 751

Quoted 5 lines
qapi/migration.json +1 -0
+# before the original migration command.
 #
 # Since: 2.5
 #

--
Dr. David Alan Gilbert / [email protected] / Manchester, UK

--
Dr. David Alan Gilbert / [email protected] / Manchester, UK

author
#5 lore raw
Quoted 13 lines · On Wed, 14 Feb 2018 09:45:50 +0000 "Dr. David Alan Gilbert"…
Quoted 12 lines · * Greg Kurz ([email protected]) wrote:
Quoted 9 lines · On Wed, 7 Feb 2018 15:55:01 +0000 "Dr. David Alan Gilbert"…
Quoted 7 lines · * Greg Kurz ([email protected]) wrote:

This capability must have the same value on both source and destination, otherwise migration fails (commit 875fcd013ab6 "migration: incoming postcopy advise sanity checks").

Let's write it down in various places where postcopy-ram is documented.

Quoted 9 lines
Quoted 6 lines
Quoted 4 lines

Thanks,

Who should pick this up ?

I was going to pick it up in a migration pull today.

Cool, thanks !

Quoted 72 lines

Dave

Quoted 59 lines
Quoted 59 lines
Quoted 59 lines
---
 docs/devel/migration.rst |    4 ++--
 hmp-commands.hx          |    3 ++-
 qapi/migration.json      |   10 ++++++----
 3 files changed, 10 insertions(+), 7 deletions(-)
docs/devel/migration.rst +2 -2
index bf97080dac2f..9d1b7657f0cf 100644
@@ -387,8 +387,8 @@ doesn't finish in a given time the switch is made to postcopy.
 Enabling postcopy
 -----------------
 
-To enable postcopy, issue this command on the monitor prior to the
-start of migration:
+To enable postcopy, issue this command on the monitor (both source and
+destination) prior to the start of migration:
 
 ``migrate_set_capability postcopy-ram on``
 
hmp-commands.hx +2 -1
index 15620c94d3fc..d26eb4119b9d 100644
@@ -1041,7 +1041,8 @@ ETEXI
         .params     = "",
         .help       = "Followup to a migration command to switch the migration"
                       " to postcopy mode. The postcopy-ram capability must "
-                      "be set before the original migration command.",
+                      "be set on both source and destination before the "
+                      "original migration command .",
         .cmd        = hmp_migrate_start_postcopy,
     },
 
qapi/migration.json +5 -4
index 4cd3d1315884..7f465a1902ce 100644
@@ -327,8 +327,10 @@
 #          to speed up convergence of RAM migration. (since 1.6)
 #
 # @postcopy-ram: Start executing on the migration target before all of RAM has
-#          been migrated, pulling the remaining pages along as needed. NOTE: If
-#          the migration fails during postcopy the VM will fail.  (since 2.6)
+#          been migrated, pulling the remaining pages along as needed. The
+#          capacity must have the same setting on both source and target
+#          or migration will not even start. NOTE: If the migration fails during
+#          postcopy the VM will fail.  (since 2.6)
 #
 # @x-colo: If enabled, migration will never end, and the state of the VM on the
 #        primary side will be migrated continuously to the VM on secondary
@@ -742,8 +744,8 @@
 # @migrate-start-postcopy:
 #
 # Followup to a migration command to switch the migration to postcopy mode.
-# The postcopy-ram capability must be set before the original migration
-# command.
+# The postcopy-ram capability must be set on both source and destination
Quoted 9 lines
Quoted 8 lines

qapi/migration.json line 751

Quoted 5 lines
qapi/migration.json +1 -0
+# before the original migration command.
 #
 # Since: 2.5
 #

--
Dr. David Alan Gilbert / [email protected] / Manchester, UK

--
Dr. David Alan Gilbert / [email protected] / Manchester, UK