migration: Fix a potential issue
commit5533b2e9bcd222e37ca6c2ff06e79adf9bf036bf
authorLiang Li <liang.z.li@intel.com>
Thu, 5 May 2016 07:32:52 +0000 (5 15:32 +0800)
committerAmit Shah <amit.shah@redhat.com>
Fri, 17 Jun 2016 12:54:09 +0000 (17 18:24 +0530)
treea923263edb61d87df0ef9c76f45207e24d8642d6
parent73a8912b8aeed1c992e3f9cb4880e9d1edb935de
migration: Fix a potential issue

At the end of live migration and before vm_start() on the destination
side, we should make sure all the decompression tasks are finished, if
this can not be guaranteed, the VM may get the incorrect memory data,
or the updated memory may be overwritten by the decompression thread.
Add the code to fix this potential issue.

Suggested-by: David Alan Gilbert <dgilbert@redhat.com>
Suggested-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Liang Li <liang.z.li@intel.com>
Message-Id: <1462433579-13691-3-git-send-email-liang.z.li@intel.com>
Signed-off-by: Amit Shah <amit.shah@redhat.com>
migration/ram.c