]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
migration: allow qmp command migrate-start-postcopy for any postcopy
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Tue, 13 Mar 2018 19:34:01 +0000 (15:34 -0400)
committerJohn Snow <jsnow@redhat.com>
Tue, 13 Mar 2018 21:06:03 +0000 (17:06 -0400)
Allow migrate-start-postcopy for any postcopy type

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Message-id: 20180313180320.339796-11-vsementsov@virtuozzo.com

migration/migration.c

index 094196c2361778f2071b7701156c0565f6143c14..59b4fe6090c9db471f349b6d7a2bb9e465ed79dc 100644 (file)
@@ -1022,7 +1022,7 @@ void qmp_migrate_start_postcopy(Error **errp)
 {
     MigrationState *s = migrate_get_current();
 
-    if (!migrate_postcopy_ram()) {
+    if (!migrate_postcopy()) {
         error_setg(errp, "Enable postcopy with migrate_set_capability before"
                          " the start of migration");
         return;