Commit 9cf4bb87 authored by Dr. David Alan Gilbert's avatar Dr. David Alan Gilbert
Browse files

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: default avatarDr. David Alan Gilbert <dgilbert@redhat.com>
Message-Id: <20180914170430.54271-2-dgilbert@redhat.com>
Reviewed-by: default avatarPeter Xu <peterx@redhat.com>
Signed-off-by: default avatarDr. David Alan Gilbert <dgilbert@redhat.com>
parent e51e711b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;
}