Move loadvm_handlers into MigrationIncomingState
In postcopy we need the loadvm_handlers to be used in a couple of different instances of the loadvm loop/routine, and thus it can't be local any more. Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Reviewed-by: David Gibson <david@gibson.dropbear.id.au> Reviewed-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Juan Quintela <quintela@redhat.com>
This commit is contained in:
parent
7c1e52ba6f
commit
1a8f46f8d6
5 changed files with 26 additions and 12 deletions
|
|
@ -42,9 +42,14 @@ struct MigrationParams {
|
|||
|
||||
typedef struct MigrationState MigrationState;
|
||||
|
||||
typedef QLIST_HEAD(, LoadStateEntry) LoadStateEntry_Head;
|
||||
|
||||
/* State for the incoming migration */
|
||||
struct MigrationIncomingState {
|
||||
QEMUFile *file;
|
||||
|
||||
/* See savevm.c */
|
||||
LoadStateEntry_Head loadvm_handlers;
|
||||
};
|
||||
|
||||
MigrationIncomingState *migration_incoming_get_current(void);
|
||||
|
|
|
|||
|
|
@ -808,6 +808,8 @@ extern const VMStateInfo vmstate_info_bitmap;
|
|||
|
||||
#define SELF_ANNOUNCE_ROUNDS 5
|
||||
|
||||
void loadvm_free_handlers(MigrationIncomingState *mis);
|
||||
|
||||
int vmstate_load_state(QEMUFile *f, const VMStateDescription *vmsd,
|
||||
void *opaque, int version_id);
|
||||
void vmstate_save_state(QEMUFile *f, const VMStateDescription *vmsd,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue