aboutsummaryrefslogtreecommitdiff
path: root/migration
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2023-05-04 13:44:42 +0200
committerJuan Quintela <quintela@redhat.com>2023-05-05 01:04:32 +0200
commit8c90815797af2ae6444a2722b19f7bdaf73b5458 (patch)
tree65a3e357b78dea4e8308613966e38c9446ed8403 /migration
parent93dc710585f22363eca98cc8982a4290bc8cf25c (diff)
migration/rdma: It makes no sense to recive that flag without RDMA
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>
Diffstat (limited to 'migration')
-rw-r--r--migration/qemu-file.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/migration/qemu-file.c b/migration/qemu-file.c
index b7afc8d498..578b6309ba 100644
--- a/migration/qemu-file.c
+++ b/migration/qemu-file.c
@@ -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);
- }
}
}