summaryrefslogtreecommitdiffstats
path: root/hw
diff options
context:
space:
mode:
authorJan Kiszka2009-11-30 18:21:21 +0100
committerAnthony Liguori2009-12-03 17:48:53 +0100
commitf327aa0c608b4bae3c93f0fbd0afcfdd9c9635bc (patch)
treec8a24861d58587a3b2107cb22fda348b2d746e00 /hw
parentblock migration: Report overall migration progress (diff)
downloadqemu-f327aa0c608b4bae3c93f0fbd0afcfdd9c9635bc.tar.gz
qemu-f327aa0c608b4bae3c93f0fbd0afcfdd9c9635bc.tar.xz
qemu-f327aa0c608b4bae3c93f0fbd0afcfdd9c9635bc.zip
live migration: Propagate output monitor to callback handler
In order to allow proper progress reporting to the monitor that initiated the migration, forward the monitor reference through the migration layer down to SaveLiveStateHandler. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/hw.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/hw.h b/hw/hw.h
index 5f34991961..7b500f4e44 100644
--- a/hw/hw.h
+++ b/hw/hw.h
@@ -244,7 +244,8 @@ int64_t qemu_fseek(QEMUFile *f, int64_t pos, int whence);
typedef void SaveSetParamsHandler(int blk_enable, int shared, void * opaque);
typedef void SaveStateHandler(QEMUFile *f, void *opaque);
-typedef int SaveLiveStateHandler(QEMUFile *f, int stage, void *opaque);
+typedef int SaveLiveStateHandler(Monitor *mon, QEMUFile *f, int stage,
+ void *opaque);
typedef int LoadStateHandler(QEMUFile *f, void *opaque, int version_id);
int register_savevm(const char *idstr,