2013-05-25 18:38:28 +00:00
|
|
|
From aa1e411294714429d6d4eb66bdb4266f65a01d1f Mon Sep 17 00:00:00 2001
|
2013-05-23 01:48:57 +00:00
|
|
|
From: Paolo Bonzini <pbonzini@redhat.com>
|
|
|
|
Date: Fri, 22 Feb 2013 17:36:26 +0100
|
2013-05-25 18:38:28 +00:00
|
|
|
Subject: [PATCH] migration: reorder SaveVMHandlers members
|
2013-05-23 01:48:57 +00:00
|
|
|
|
|
|
|
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>
|
2013-05-25 18:38:28 +00:00
|
|
|
(cherry picked from commit 8c8de19d93444536d3291e6ab83e2bcf61dd2d0c)
|
2013-05-23 01:48:57 +00:00
|
|
|
---
|
|
|
|
include/migration/vmstate.h | 8 +++++---
|
|
|
|
1 file changed, 5 insertions(+), 3 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/include/migration/vmstate.h b/include/migration/vmstate.h
|
|
|
|
index f27276c..6229569 100644
|
|
|
|
--- a/include/migration/vmstate.h
|
|
|
|
+++ b/include/migration/vmstate.h
|
|
|
|
@@ -32,13 +32,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,
|