migration: delay postcopy paused state
commiteed1cc7866ae35bd28926d75447dd6076bd6bb96
authorPeter Xu <peterx@redhat.com>
Wed, 27 Jun 2018 13:22:43 +0000 (27 21:22 +0800)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Tue, 10 Jul 2018 11:48:53 +0000 (10 12:48 +0100)
treece186b7d0f99d6280b4de6d46e0ca1a3cccd73d5
parent2b83714d4ea659899069a4b94aa2dfadc847a013
migration: delay postcopy paused state

Before this patch we firstly setup the postcopy-paused state then we
clean up the QEMUFile handles.  That can be racy if there is a very fast
"migrate-recover" command running in parallel.  Fix that up.

Reported-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Message-Id: <20180627132246.5576-2-peterx@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
migration/savevm.c