@@ -37,6 +37,7 @@
#include "readline.h"
#include "console.h"
#include "block.h"
+#include "block-migration.h"
#include "audio/audio.h"
#include "disas.h"
#include "balloon.h"
@@ -2507,6 +2508,24 @@ static void monitor_handle_command(Monitor *mon, const char *cmdline)
goto add_str;
}
}
+
+ if (*typestr == '!') {
+ char flag[4];
+ char * cmd_flag;
+ typestr++;
+ memcpy(flag, typestr, 3);
+ typestr += 3;
+ flag[3] = '\0';
+
+ cmd_flag = strstr(p, flag);
+ if (cmd_flag != p) {
+ /* no optional string: NULL argument */
+ str = NULL;
+ goto add_str;
+ }
+
+ }
+
ret = get_str(buf, sizeof(buf), &p);
if (ret < 0) {
switch(c) {
@@ -463,8 +463,8 @@ STEXI
Inject an NMI on the given CPU (x86 only).
ETEXI
- { "migrate", "-ds", do_migrate,
- "[-d] uri", "migrate to URI (using -d to not wait for completion)" },
+ { "migrate", "-ds!blks!incs", do_migrate,
+ "[-d] [blk] [inc] uri", "migrate to URI (using -d - to not wait \n\t\tfor completion,\n\t\t [blk] - for migration without shared storage,\n\t\t [inc] - for incremental migration if base image is identical)" },
STEXI
@item migrate [-d] @var{uri}
Migrate to @var{uri} (using -d to not wait for completion).