mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
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>
This commit is contained in:
parent
5f5b8858dc
commit
f6d6c089b7
4 changed files with 14 additions and 7 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue