summaryrefslogtreecommitdiffstats
path: root/migration
diff options
context:
space:
mode:
authorDr. David Alan Gilbert2018-09-14 19:04:29 +0200
committerDr. David Alan Gilbert2018-09-26 18:29:01 +0200
commit9cf4bb8730c669c40550e635a9e2b8ee4f1664ca (patch)
tree1d97ad702cc467ef3e572de3de3769311df3c868 /migration
parenttests/migration: Add migration-test header file (diff)
downloadqemu-9cf4bb8730c669c40550e635a9e2b8ee4f1664ca.tar.gz
qemu-9cf4bb8730c669c40550e635a9e2b8ee4f1664ca.tar.xz
qemu-9cf4bb8730c669c40550e635a9e2b8ee4f1664ca.zip
migration/postcopy: Clear have_listen_thread
Clear have_listen_thread when we exit the thread. The fallout from this was that various things thought there was an ongoing postcopy after the postcopy had finished. The case that failed was postcopy->savevm->loadvm. This corresponds to RH bug https://bugzilla.redhat.com/show_bug.cgi?id=1608765 Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Message-Id: <20180914170430.54271-2-dgilbert@redhat.com> Reviewed-by: Peter Xu <peterx@redhat.com> Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'migration')
-rw-r--r--migration/savevm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/migration/savevm.c b/migration/savevm.c
index 9692577318..d35e87b88c 100644
--- a/migration/savevm.c
+++ b/migration/savevm.c
@@ -1679,6 +1679,7 @@ static void *postcopy_ram_listen_thread(void *opaque)
qemu_loadvm_state_cleanup();
rcu_unregister_thread();
+ mis->have_listen_thread = false;
return NULL;
}