migration/rdma: Unfold ram_control_after_iterate()
Once there: - Remove unused data parameter - unfold it in its callers - change all callers to call qemu_rdma_registration_stop() - We need to call QIO_CHANNEL_RDMA() after we check for migrate_rdma() Reviewed-by: Li Zhijian <lizhijian@fujitsu.com> Signed-off-by: Juan Quintela <quintela@redhat.com> Message-ID: <20231011203527.9061-4-quintela@redhat.com>
This commit is contained in:
@@ -298,18 +298,6 @@ void qemu_fflush(QEMUFile *f)
|
||||
f->iovcnt = 0;
|
||||
}
|
||||
|
||||
void ram_control_after_iterate(QEMUFile *f, uint64_t flags)
|
||||
{
|
||||
int ret = 0;
|
||||
|
||||
if (f->hooks && f->hooks->after_ram_iterate) {
|
||||
ret = f->hooks->after_ram_iterate(f, flags, NULL);
|
||||
if (ret < 0) {
|
||||
qemu_file_set_error(f, ret);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void ram_control_load_hook(QEMUFile *f, uint64_t flags, void *data)
|
||||
{
|
||||
if (f->hooks && f->hooks->hook_ram_load) {
|
||||
|
||||
Reference in New Issue
Block a user