mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
migration: Receiving a zero page non zero is an error
We don't allow non zero compressed pages since: commit3edcd7e6eb
Author: Peter Lieven <pl@kamp.de> Date: Tue Mar 26 10:58:35 2013 +0100 migration: search for zero instead of dup pages RDMA case is a bit more complicated, but they don't handle it since: commita1febc4950
Author: Richard Henderson <rth@twiddle.net> Date: Mon Aug 29 11:46:14 2016 -0700 cutils: Export only buffer_is_zero Reviewed-by: Fabiano Rosas <farosas@suse.de> Reviewed-by: Peter Xu <peterx@redhat.com> Signed-off-by: Juan Quintela <quintela@redhat.com> Message-ID: <20231019085259.13307-2-quintela@redhat.com>
This commit is contained in:
parent
e77326179d
commit
413d64fedc
2 changed files with 16 additions and 5 deletions
|
@ -3592,7 +3592,11 @@ int rdma_registration_handle(QEMUFile *f)
|
|||
|
||||
host_addr = block->local_host_addr +
|
||||
(comp->offset - block->offset);
|
||||
|
||||
if (comp->value) {
|
||||
error_report("rdma: Zero page with non-zero (%d) value",
|
||||
comp->value);
|
||||
goto err;
|
||||
}
|
||||
ram_handle_compressed(host_addr, comp->value, comp->length);
|
||||
break;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue