diff options
author | Juan Quintela <quintela@redhat.com> | 2023-10-11 22:35:19 +0200 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2023-10-17 09:25:13 +0200 |
commit | a6323300e879558055948cb16ba6da52a9836869 (patch) | |
tree | f8dd9b6ee7b178b2fe365ee5e7a0fff8eff5116d /migration/ram.c | |
parent | f6d6c089b78a6492416408b93a799edecfd736d6 (diff) | |
download | qemu-a6323300e879558055948cb16ba6da52a9836869.zip qemu-a6323300e879558055948cb16ba6da52a9836869.tar.gz qemu-a6323300e879558055948cb16ba6da52a9836869.tar.bz2 |
migration/rdma: Unfold hook_ram_load()
There is only one flag called with: RAM_CONTROL_BLOCK_REG.
Reviewed-by: Li Zhijian <lizhijian@fujitsu.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Message-ID: <20231011203527.9061-6-quintela@redhat.com>
Diffstat (limited to 'migration/ram.c')
-rw-r--r-- | migration/ram.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/migration/ram.c b/migration/ram.c index f6ea183..8c46227 100644 --- a/migration/ram.c +++ b/migration/ram.c @@ -4025,8 +4025,10 @@ static int ram_load_precopy(QEMUFile *f) ret = -EINVAL; } } - ram_control_load_hook(f, RAM_CONTROL_BLOCK_REG, - block->idstr); + ret = rdma_block_notification_handle(f, block->idstr); + if (ret < 0) { + qemu_file_set_error(f, ret); + } } else { error_report("Unknown ramblock \"%s\", cannot " "accept migration", id); |