From: Jiri Denemark Date: Wed, 5 Apr 2017 10:04:09 +0000 (+0200) Subject: qemu: Always reset TLS in qemuProcessRecoverMigrationOut X-Git-Tag: v3.3.0-rc1~248 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9d677e6a6ba075f489f791b6922a5dadf0e0c79f;p=thirdparty%2Flibvirt.git qemu: Always reset TLS in qemuProcessRecoverMigrationOut qemuProcessRecoverMigrationOut doesn't explicitly call qemuMigrationResetTLS relying on two things: - qemuMigrationCancel resets TLS parameters - our migration code resets TLS before entering QEMU_MIGRATION_PHASE_PERFORM3_DONE phase But this is not obvious and the assumptions will be broken soon. Let's explicitly reset TLS parameters on all paths which do not kill the domain. Signed-off-by: Jiri Denemark --- diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c index 0783286d4e..4c7e9df54f 100644 --- a/src/qemu/qemu_process.c +++ b/src/qemu/qemu_process.c @@ -3077,6 +3077,7 @@ qemuProcessRecoverMigrationOut(virQEMUDriverPtr driver, } } + qemuMigrationResetTLS(driver, vm, QEMU_ASYNC_JOB_NONE, NULL, NULL); return 0; }