mirror of https://gitee.com/openkylin/libvirt.git
qemu: stop NBD server after successful migration
In qemuMigrationFinish mig->nbd can not be initialized by qemuMigrationEatCookie without the QEMU_MIGRATION_COOKIE_NBD flag. That causes qemuMigrationStopNBDServer to return early without stopping the NBD server properly. Signed-off-by: Weiwei Li <nuonuoli@tencent.com> Signed-off-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
5c8515620b
commit
c3012a023f
|
@ -4822,7 +4822,8 @@ qemuMigrationFinish(virQEMUDriverPtr driver,
|
|||
VIR_FREE(priv->job.completed);
|
||||
|
||||
cookie_flags = QEMU_MIGRATION_COOKIE_NETWORK |
|
||||
QEMU_MIGRATION_COOKIE_STATS;
|
||||
QEMU_MIGRATION_COOKIE_STATS |
|
||||
QEMU_MIGRATION_COOKIE_NBD;
|
||||
if (flags & VIR_MIGRATE_PERSIST_DEST)
|
||||
cookie_flags |= QEMU_MIGRATION_COOKIE_PERSISTENT;
|
||||
|
||||
|
|
Loading…
Reference in New Issue