]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
qemu: migration: Properly parse memory hotplug migration flag
authorPeter Krempa <pkrempa@redhat.com>
Thu, 5 Nov 2015 14:20:21 +0000 (15:20 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 5 Nov 2015 14:20:21 +0000 (15:20 +0100)
Since the flag was not enabled when 'eating' the migration cookie,
libvirt reported a bogus error when memory hotplug was enabled:

 unsupported migration cookie feature memory-hotplug

The error was ignored though due to a bug in the code so it slipped
through testing.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1278404

src/qemu/qemu_migration.c

index 2abf2eea8dcf0ad4be92405611df217388006fcd..a53a53369a773df5e380c6dca320b1e62aae1208 100644 (file)
@@ -3387,7 +3387,8 @@ qemuMigrationPrepareAny(virQEMUDriverPtr driver,
 
     if (!(mig = qemuMigrationEatCookie(driver, vm, cookiein, cookieinlen,
                                        QEMU_MIGRATION_COOKIE_LOCKSTATE |
-                                       QEMU_MIGRATION_COOKIE_NBD)))
+                                       QEMU_MIGRATION_COOKIE_NBD |
+                                       QEMU_MIGRATION_COOKIE_MEMORY_HOTPLUG)))
         goto cleanup;
 
     if (STREQ_NULLABLE(protocol, "rdma") &&