aboutsummaryrefslogtreecommitdiff
path: root/monitor.c
diff options
context:
space:
mode:
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2008-10-13 03:12:02 +0000
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2008-10-13 03:12:02 +0000
commit5bb7910af031cce09cc619b982d39dc889776f65 (patch)
tree9372820c2f7fd94b418be295e995ebfe4a5db587 /monitor.c
parent39b65c2e315ad5565e22b98ea2a4498ec2edfad2 (diff)
downloadqemu-5bb7910af031cce09cc619b982d39dc889776f65.zip
qemu-5bb7910af031cce09cc619b982d39dc889776f65.tar.gz
qemu-5bb7910af031cce09cc619b982d39dc889776f65.tar.bz2
Introduce UI for live migration
This patch introduces a command line parameter and monitor command for starting a live migration. The next patch will provide an example of how to use these parameters. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5476 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'monitor.c')
-rw-r--r--monitor.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/monitor.c b/monitor.c
index dd2e770..4d7c782 100644
--- a/monitor.c
+++ b/monitor.c
@@ -36,6 +36,7 @@
#include "disas.h"
#include <dirent.h>
#include "qemu-timer.h"
+#include "migration.h"
//#define DEBUG
//#define DEBUG_COMPLETION
@@ -1454,6 +1455,12 @@ static const term_cmd_t term_cmds[] = {
{ "nmi", "i", do_inject_nmi,
"cpu", "inject an NMI on the given CPU", },
#endif
+ { "migrate", "-ds", do_migrate,
+ "[-d] uri", "migrate to URI (using -d to not wait for completion)" },
+ { "migrate_cancel", "", do_migrate_cancel,
+ "", "cancel the current VM migration" },
+ { "migrate_set_speed", "s", do_migrate_set_speed,
+ "value", "set maximum speed (in bytes) for migrations" },
{ NULL, NULL, },
};
@@ -1516,6 +1523,7 @@ static const term_cmd_t info_cmds[] = {
{ "slirp", "", do_info_slirp,
"", "show SLIRP statistics", },
#endif
+ { "migrate", "", do_info_migrate, "", "show migration status" },
{ NULL, NULL, },
};