aboutsummaryrefslogtreecommitdiff
path: root/migration/qemu-file.h
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2023-10-11 22:35:19 +0200
committerJuan Quintela <quintela@redhat.com>2023-10-17 09:25:13 +0200
commita6323300e879558055948cb16ba6da52a9836869 (patch)
treef8dd9b6ee7b178b2fe365ee5e7a0fff8eff5116d /migration/qemu-file.h
parentf6d6c089b78a6492416408b93a799edecfd736d6 (diff)
downloadqemu-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/qemu-file.h')
-rw-r--r--migration/qemu-file.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/migration/qemu-file.h b/migration/qemu-file.h
index 14ff0d9..80c3063 100644
--- a/migration/qemu-file.h
+++ b/migration/qemu-file.h
@@ -30,19 +30,11 @@
#include "io/channel.h"
/*
- * This function provides hooks around different
- * stages of RAM migration.
- * 'data' is call specific data associated with the 'flags' value
- */
-typedef int (QEMURamHookFunc)(QEMUFile *f, uint64_t flags, void *data);
-
-/*
* Constants used by ram_control_* hooks
*/
#define RAM_CONTROL_SETUP 0
#define RAM_CONTROL_ROUND 1
#define RAM_CONTROL_FINISH 3
-#define RAM_CONTROL_BLOCK_REG 4
/*
* This function allows override of where the RAM page
@@ -54,7 +46,6 @@ typedef int (QEMURamSaveFunc)(QEMUFile *f,
size_t size);
typedef struct QEMUFileHooks {
- QEMURamHookFunc *hook_ram_load;
QEMURamSaveFunc *save_page;
} QEMUFileHooks;
@@ -124,8 +115,6 @@ void qemu_fflush(QEMUFile *f);
void qemu_file_set_blocking(QEMUFile *f, bool block);
int qemu_file_get_to_fd(QEMUFile *f, int fd, size_t size);
-void ram_control_load_hook(QEMUFile *f, uint64_t flags, void *data);
-
/* Whenever this is found in the data stream, the flags
* will be passed to ram_control_load_hook in the incoming-migration
* side. This lets before_ram_iterate/after_ram_iterate add