mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
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>
This commit is contained in:
parent
f6d6c089b7
commit
a6323300e8
5 changed files with 18 additions and 46 deletions
|
@ -29,20 +29,12 @@
|
|||
#include "exec/cpu-common.h"
|
||||
#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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue