aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2009-08-18 15:56:25 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-08-27 19:33:15 -0500
commit5ac1fad324d869ab6971256aa56188ebac784e46 (patch)
treed1bcd758198eb80441a7cedaa5602fffa4d229a5 /migration.c
parentAdd sparse to new feature convention (diff)
downloadqemu-kvm-5ac1fad324d869ab6971256aa56188ebac784e46.tar.gz
qemu-kvm-5ac1fad324d869ab6971256aa56188ebac784e46.tar.bz2
qemu-kvm-5ac1fad324d869ab6971256aa56188ebac784e46.zip
add file descriptor migration
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Cc: Chris Lalancette <clalance@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'migration.c')
-rw-r--r--migration.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/migration.c b/migration.c
index 34e2bc14c..c18d59584 100644
--- a/migration.c
+++ b/migration.c
@@ -45,6 +45,8 @@ void qemu_start_incoming_migration(const char *uri)
exec_start_incoming_migration(p);
else if (strstart(uri, "unix:", &p))
unix_start_incoming_migration(p);
+ else if (strstart(uri, "fd:", &p))
+ fd_start_incoming_migration(p);
#endif
else
fprintf(stderr, "unknown migration protocol: %s\n", uri);
@@ -62,6 +64,8 @@ void do_migrate(Monitor *mon, int detach, const char *uri)
s = exec_start_outgoing_migration(p, max_throttle, detach);
else if (strstart(uri, "unix:", &p))
s = unix_start_outgoing_migration(p, max_throttle, detach);
+ else if (strstart(uri, "fd:", &p))
+ s = fd_start_outgoing_migration(mon, p, max_throttle, detach);
#endif
else
monitor_printf(mon, "unknown migration protocol: %s\n", uri);