diff options
author | Xiao Guangrong <xiaoguangrong@tencent.com> | 2018-03-30 15:51:22 +0800 |
---|---|---|
committer | Dr. David Alan Gilbert <dgilbert@redhat.com> | 2018-04-25 18:04:08 +0100 |
commit | 34ab9e9743aeaf265929d930747f101fa5c76fea (patch) | |
tree | 616c81663414a3e84eb881b63dc831e70e528d48 /bt-vhci.c | |
parent | 797ca154b4c68dbd8e93382f714388ab311f672d (diff) | |
download | qemu-34ab9e9743aeaf265929d930747f101fa5c76fea.zip qemu-34ab9e9743aeaf265929d930747f101fa5c76fea.tar.gz qemu-34ab9e9743aeaf265929d930747f101fa5c76fea.tar.bz2 |
migration: detect compression and decompression errors
Currently the page being compressed is allowed to be updated by
the VM on the source QEMU, correspondingly the destination QEMU
just ignores the decompression error. However, we completely miss
the chance to catch real errors, then the VM is corrupted silently
To make the migration more robuster, we copy the page to a buffer
first to avoid it being written by VM, then detect and handle the
errors of both compression and decompression errors properly
Reviewed-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Xiao Guangrong <xiaoguangrong@tencent.com>
Message-Id: <20180330075128.26919-5-xiaoguangrong@tencent.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'bt-vhci.c')
0 files changed, 0 insertions, 0 deletions