aboutsummaryrefslogtreecommitdiff
path: root/migration/ram.c
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2023-10-11 22:35:18 +0200
committerJuan Quintela <quintela@redhat.com>2023-10-17 09:25:13 +0200
commitf6d6c089b78a6492416408b93a799edecfd736d6 (patch)
tree5daecf7b6b96ac11576347f0274bf2edf2fe3ba1 /migration/ram.c
parent5f5b8858dc1c11916000a5a2038044dec31640d6 (diff)
downloadqemu-f6d6c089b78a6492416408b93a799edecfd736d6.zip
qemu-f6d6c089b78a6492416408b93a799edecfd736d6.tar.gz
qemu-f6d6c089b78a6492416408b93a799edecfd736d6.tar.bz2
migration/rdma: Remove all uses of RAM_CONTROL_HOOK
Instead of going through ram_control_load_hook(), call qemu_rdma_registration_handle() directly. Reviewed-by: Li Zhijian <lizhijian@fujitsu.com> Signed-off-by: Juan Quintela <quintela@redhat.com> Message-ID: <20231011203527.9061-5-quintela@redhat.com>
Diffstat (limited to 'migration/ram.c')
-rw-r--r--migration/ram.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/migration/ram.c b/migration/ram.c
index f1ddc1f..f6ea183 100644
--- a/migration/ram.c
+++ b/migration/ram.c
@@ -4075,7 +4075,10 @@ static int ram_load_precopy(QEMUFile *f)
}
break;
case RAM_SAVE_FLAG_HOOK:
- ram_control_load_hook(f, RAM_CONTROL_HOOK, NULL);
+ ret = qemu_rdma_registration_handle(f);
+ if (ret < 0) {
+ qemu_file_set_error(f, ret);
+ }
break;
default:
error_report("Unknown combination of migration flags: 0x%x", flags);