Commit 1b1fdfea authored by Orit Wasserman's avatar Orit Wasserman Committed by Juan Quintela

Allow XBZRLE decoding without enabling the capability

Before this fix we couldn't load a guest from
XBZRLE compressed file.

For example:
The user activated the XBZRLE capability
The user run migrate -d "exec:gzip -c > vm.gz"
The user won't be able to load vm.gz and get an error.
Signed-off-by: default avatarOrit Wasserman <>
Reviewed-by: default avatarPaolo Bonzini <>
Reviewed-by: default avatarEric Blake <>
Signed-off-by: default avatarJuan Quintela <>
parent dbca1b37
......@@ -851,9 +851,6 @@ static int ram_load(QEMUFile *f, void *opaque, int version_id)
qemu_get_buffer(f, host, TARGET_PAGE_SIZE);
} else if (flags & RAM_SAVE_FLAG_XBZRLE) {
if (!migrate_use_xbzrle()) {
return -EINVAL;
void *host = host_from_stream_offset(f, addr, flags);
if (!host) {
return -EINVAL;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment