]> xenbits.xensource.com Git - qemu-xen.git/commit
migration: Stop postcopy fault thread before notifying
authorIlya Maximets <i.maximets@samsung.com>
Mon, 8 Oct 2018 16:05:35 +0000 (19:05 +0300)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 27 Mar 2019 06:31:28 +0000 (01:31 -0500)
commitef862b9e8e99161555147b856c8b2be205dc23f9
tree77be4041ea7b2626661c755d761efa06e8dd8092
parentbbe21c6d30b10d43ce962d9422d6d94728ab2329
migration: Stop postcopy fault thread before notifying

POSTCOPY_NOTIFY_INBOUND_END handlers will remove userfault fds
from the postcopy_remote_fds array which could be still in
use by the fault thread. Let's stop the thread before
notification to avoid possible accessing wrong memory.

Fixes: 46343570c06e ("vhost+postcopy: Wire up POSTCOPY_END notify")
Cc: qemu-stable@nongnu.org
Signed-off-by: Ilya Maximets <i.maximets@samsung.com>
Message-Id: <20181008160536.6332-2-i.maximets@samsung.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
(cherry picked from commit 55d0fe8254984321a126efd8db358f754737aa63)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
migration/postcopy-ram.c