diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2013-02-22 17:36:26 +0100 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2013-03-11 13:32:01 +0100 |
commit | 8c8de19d93444536d3291e6ab83e2bcf61dd2d0c (patch) | |
tree | f467ee6d016fb23d2f5c3002de0d8218435a35e3 /include/migration/vmstate.h | |
parent | 52e850dea988585c3d693fd9cd4a4c38968d89b8 (diff) | |
download | hqemu-8c8de19d93444536d3291e6ab83e2bcf61dd2d0c.zip hqemu-8c8de19d93444536d3291e6ab83e2bcf61dd2d0c.tar.gz |
migration: reorder SaveVMHandlers members
This groups together the callbacks that later will have similar
locking rules.
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'include/migration/vmstate.h')
-rw-r--r-- | include/migration/vmstate.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/migration/vmstate.h b/include/migration/vmstate.h index 94a409b..fdf4e65 100644 --- a/include/migration/vmstate.h +++ b/include/migration/vmstate.h @@ -34,13 +34,15 @@ typedef int LoadStateHandler(QEMUFile *f, void *opaque, int version_id); typedef struct SaveVMHandlers { void (*set_params)(const MigrationParams *params, void * opaque); SaveStateHandler *save_state; + int (*save_live_setup)(QEMUFile *f, void *opaque); - int (*save_live_iterate)(QEMUFile *f, void *opaque); + void (*cancel)(void *opaque); int (*save_live_complete)(QEMUFile *f, void *opaque); + bool (*is_active)(void *opaque); + int (*save_live_iterate)(QEMUFile *f, void *opaque); uint64_t (*save_live_pending)(QEMUFile *f, void *opaque, uint64_t max_size); - void (*cancel)(void *opaque); + LoadStateHandler *load_state; - bool (*is_active)(void *opaque); } SaveVMHandlers; int register_savevm(DeviceState *dev, |