summaryrefslogtreecommitdiff
path: root/sysemu.h
diff options
context:
space:
mode:
authorGlauber Costa <glommer@redhat.com>2009-05-21 17:38:01 -0400
committerAnthony Liguori <aliguori@us.ibm.com>2009-05-22 10:50:29 -0500
commit9f9e28cda74bc8cddd8ac4c0a9c007b31d42c6f6 (patch)
tree87790daf978b77e5f000e43d34d564a74df26cf9 /sysemu.h
parented8b330bccabb03c930ed1e4d72e341130f9b406 (diff)
downloadqemu-9f9e28cda74bc8cddd8ac4c0a9c007b31d42c6f6.tar.gz
qemu-9f9e28cda74bc8cddd8ac4c0a9c007b31d42c6f6.tar.bz2
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);