X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=arch_init.c;fp=arch_init.c;h=8bb933fddb2c7442ce9823d40bcc9a4ab2b23cd2;hb=9ef051e5536b6368a1076046ec6c4ec4ac12b5c6;hp=64421e161961821bda6de41353ff664a4bd339a1;hpb=87d2f8254347879f80b3a834834a6b934dea5ecc;p=qemu.git diff --git a/arch_init.c b/arch_init.c index 64421e161..8bb933fdd 100644 --- a/arch_init.c +++ b/arch_init.c @@ -457,15 +457,10 @@ static int ram_save_block(QEMUFile *f, bool last_stage) bytes_sent = -1; if (is_zero_page(p)) { acct_info.dup_pages++; - if (!ram_bulk_stage) { - bytes_sent = save_block_hdr(f, block, offset, cont, - RAM_SAVE_FLAG_COMPRESS); - qemu_put_byte(f, 0); - bytes_sent++; - } else { - acct_info.skipped_pages++; - bytes_sent = 0; - } + bytes_sent = save_block_hdr(f, block, offset, cont, + RAM_SAVE_FLAG_COMPRESS); + qemu_put_byte(f, 0); + bytes_sent++; } else if (!ram_bulk_stage && migrate_use_xbzrle()) { current_addr = block->offset + offset; bytes_sent = save_xbzrle_page(f, p, current_addr, block,