summaryrefslogtreecommitdiffstats
path: root/migration/socket.c
diff options
context:
space:
mode:
authorPeter Maydell2016-08-11 18:53:35 +0200
committerPeter Maydell2016-08-11 18:53:35 +0200
commit28b874429ba16e71e0caa46453f3a3e31efb3c51 (patch)
tree040b35d0a29ab7798304d2ea0ae09d97c7bcf437 /migration/socket.c
parentUpdate ancient copyright string in -version output (diff)
parentmigration/socket: fix typo in file header (diff)
downloadqemu-28b874429ba16e71e0caa46453f3a3e31efb3c51.tar.gz
qemu-28b874429ba16e71e0caa46453f3a3e31efb3c51.tar.xz
qemu-28b874429ba16e71e0caa46453f3a3e31efb3c51.zip
Merge remote-tracking branch 'remotes/amit-migration/tags/migration-for-2.7-7' into staging
Migration: - couple of bug fixes - couple of typo fixes # gpg: Signature made Thu 11 Aug 2016 12:36:00 BST # gpg: using RSA key 0xEB0B4DFC657EF670 # gpg: Good signature from "Amit Shah <amit@amitshah.net>" # gpg: aka "Amit Shah <amit@kernel.org>" # gpg: aka "Amit Shah <amitshah@gmx.net>" # Primary key fingerprint: 48CA 3722 5FE7 F4A8 B337 2735 1E9A 3B5F 8540 83B6 # Subkey fingerprint: CC63 D332 AB8F 4617 4529 6534 EB0B 4DFC 657E F670 * remotes/amit-migration/tags/migration-for-2.7-7: migration/socket: fix typo in file header migration: fix live migration failure with compression migration: mmap error check fix migration/ram: fix typo Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'migration/socket.c')
-rw-r--r--migration/socket.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/migration/socket.c b/migration/socket.c
index 5c0a38f7b9..00de1fe127 100644
--- a/migration/socket.c
+++ b/migration/socket.c
@@ -1,5 +1,5 @@
/*
- * QEMU live migration via Unix Domain Sockets
+ * QEMU live migration via socket
*
* Copyright Red Hat, Inc. 2009-2016
*
@@ -94,10 +94,12 @@ static void socket_start_outgoing_migration(MigrationState *s,
{
QIOChannelSocket *sioc = qio_channel_socket_new();
struct SocketConnectData *data = g_new0(struct SocketConnectData, 1);
+
data->s = s;
if (saddr->type == SOCKET_ADDRESS_KIND_INET) {
data->hostname = g_strdup(saddr->u.inet.data->host);
}
+
qio_channel_socket_connect_async(sioc,
saddr,
socket_outgoing_migration,