summaryrefslogtreecommitdiffstats
path: root/sysemu.h
diff options
context:
space:
mode:
authorGlauber Costa2009-05-21 23:38:01 +0200
committerAnthony Liguori2009-05-22 17:50:29 +0200
commit9f9e28cda74bc8cddd8ac4c0a9c007b31d42c6f6 (patch)
tree87790daf978b77e5f000e43d34d564a74df26cf9 /sysemu.h
parentDon't send all gratuitous packets at once. (diff)
downloadqemu-9f9e28cda74bc8cddd8ac4c0a9c007b31d42c6f6.tar.gz
qemu-9f9e28cda74bc8cddd8ac4c0a9c007b31d42c6f6.tar.xz
qemu-9f9e28cda74bc8cddd8ac4c0a9c007b31d42c6f6.zip
augment info migrate with page status
This patch augments info migrate output with status about: * ram bytes remaining * ram bytes transferred * ram bytes total This should be enough for management tools to realize whether or not there is progress in migration. We can add more information later on, if the need arrives [v2: fixes bytes_transferred type] Signed-off-by: Glauber Costa <glommer@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'sysemu.h')
-rw-r--r--sysemu.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sysemu.h b/sysemu.h
index 4063533f2b..a1dadaa42a 100644
--- a/sysemu.h
+++ b/sysemu.h
@@ -28,6 +28,10 @@ void qemu_del_vm_change_state_handler(VMChangeStateEntry *e);
void vm_start(void);
void vm_stop(int reason);
+uint64_t ram_bytes_remaining(void);
+uint64_t ram_bytes_transferred(void);
+uint64_t ram_bytes_total(void);
+
int64_t cpu_get_ticks(void);
void cpu_enable_ticks(void);
void cpu_disable_ticks(void);