summary refs log tree commit diff stats
path: root/include/hw/compat.h
diff options
context:
space:
mode:
authorXiao Guangrong <xiaoguangrong@tencent.com>2018-05-03 16:06:11 +0800
committerJuan Quintela <quintela@redhat.com>2018-06-04 05:46:15 +0200
commitf548222c24342ca74689de7794f9006b43f86a54 (patch)
treee2828ca1ffae6910f2ddcfeac9a560f318e3903f /include/hw/compat.h
parent392fba9f583223786f844dce9b2e7f9a0ce0147a (diff)
downloadfocaccia-qemu-f548222c24342ca74689de7794f9006b43f86a54.tar.gz
focaccia-qemu-f548222c24342ca74689de7794f9006b43f86a54.zip
migration: introduce decompress-error-check
QEMU 3.0 enables strict check for compression & decompression to
make the migration more robust, that depends on the source to fix
the internal design which triggers the unexpected error conditions

To make it work for migrating old version QEMU to 2.13 QEMU, we
introduce this parameter to disable the error check on the
destination which is the default behavior of the machine type
which is older than 2.13, alternately, the strict check can be
enabled explicitly as followings:
      -M pc-q35-2.11 -global migration.decompress-error-check=true

Signed-off-by: Xiao Guangrong <xiaoguangrong@tencent.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'include/hw/compat.h')
-rw-r--r--include/hw/compat.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/hw/compat.h b/include/hw/compat.h
index 4681c2719a..563908b874 100644
--- a/include/hw/compat.h
+++ b/include/hw/compat.h
@@ -1,7 +1,12 @@
 #ifndef HW_COMPAT_H
 #define HW_COMPAT_H
 
-#define HW_COMPAT_2_12
+#define HW_COMPAT_2_12 \
+    {\
+        .driver   = "migration",\
+        .property = "decompress-error-check",\
+        .value    = "off",\
+    },
 
 #define HW_COMPAT_2_11 \
     {\