| Submitter | Yoshiaki Tamura |
|---|---|
| Date | May 25, 2010, 8:37 a.m. |
| Message ID | <1274776624-16435-25-git-send-email-tamura.yoshiaki@lab.ntt.co.jp> |
| Download | mbox | patch |
| Permalink | /patch/53507/ |
| State | New |
| Headers | show |
Comments
Patch
diff --git a/migration.c b/migration.c index 3334650..a4850f9 100644 --- a/migration.c +++ b/migration.c @@ -42,7 +42,19 @@ static MigrationState *current_migration; void qemu_start_incoming_migration(const char *uri) { - const char *p; + const char *p = uri; + + /* check ft_mode option */ + while (*p != '\0') { + if (*p == ',') { + p++; + if (!strcmp(p, "ft_mode")) { + ft_mode = FT_INIT; + break; + } + } + p++; + } if (strstart(uri, "tcp:", &p)) tcp_start_incoming_migration(p);
The option looks like, -incoming <protocol>:<address>:<port>,ft_mode Signed-off-by: Yoshiaki Tamura <tamura.yoshiaki@lab.ntt.co.jp> --- migration.c | 14 +++++++++++++- 1 files changed, 13 insertions(+), 1 deletions(-)