Skip to content

Commit

Permalink
migration/rdma: It makes no sense to recive that flag without RDMA
Browse files Browse the repository at this point in the history
This could only happen if the source sent
RAM_SAVE_FLAG_HOOK (i.e. rdma) and destination don't have CONFIG_RDMA.

Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20230504114443.23891-5-quintela@redhat.com>
  • Loading branch information
Juan Quintela committed May 4, 2023
1 parent 93dc710 commit 8c90815
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions migration/qemu-file.c
Original file line number Diff line number Diff line change
Expand Up @@ -345,14 +345,6 @@ void ram_control_load_hook(QEMUFile *f, uint64_t flags, void *data)
if (ret < 0) {
qemu_file_set_error(f, ret);
}
} else {
/*
* Hook is a hook specifically requested by the source sending a flag
* that expects there to be a hook on the destination.
*/
if (flags == RAM_CONTROL_HOOK) {
qemu_file_set_error(f, -EINVAL);
}
}
}

Expand Down

0 comments on commit 8c90815

Please sign in to comment.