Commit 9ef051e5 authored by Peter Lieven's avatar Peter Lieven Committed by Juan Quintela
Browse files

Revert "migration: do not sent zero pages in bulk stage"

Not sending zero pages breaks migration if a page is zero
at the source but not at the destination. This can e.g. happen
if different BIOS versions are used at source and destination.
It has also been reported that migration on pseries is completely
broken with this patch.

This effectively reverts commit f1c72795



Signed-off-by: default avatarPeter Lieven <>
Signed-off-by: default avatarJuan Quintela <>
parent 87d2f825
......@@ -457,15 +457,10 @@ static int ram_save_block(QEMUFile *f, bool last_stage)
bytes_sent = -1;
if (is_zero_page(p)) {
if (!ram_bulk_stage) {
bytes_sent = save_block_hdr(f, block, offset, cont,
qemu_put_byte(f, 0);
} else {
bytes_sent = 0;
} else if (!ram_bulk_stage && migrate_use_xbzrle()) {
current_addr = block->offset + offset;
bytes_sent = save_xbzrle_page(f, p, current_addr, block,
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