mirror of
https://github.com/qemu/qemu.git
synced 2024-12-16 16:53:28 +08:00
d658f65c16
Currently, the only difference of tcp channel and unix channel in migration/socket.c is the way to build SocketAddress, but socket_parse() can handle these two types, so use it to instead of tcp_build_address() and unix_build_address(). The socket-type channel can be further unified based on the up, this would be helpful for us to add other socket-type channels. Signed-off-by: Longpeng(Mike) <longpeng2@huawei.com> Message-Id: <20200806074030.174-2-longpeng2@huawei.com> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
31 lines
868 B
C
31 lines
868 B
C
/*
|
|
* QEMU live migration via socket
|
|
*
|
|
* Copyright Red Hat, Inc. 2009-2016
|
|
*
|
|
* Authors:
|
|
* Chris Lalancette <clalance@redhat.com>
|
|
* Daniel P. Berrange <berrange@redhat.com>
|
|
*
|
|
* This work is licensed under the terms of the GNU GPL, version 2. See
|
|
* the COPYING file in the top-level directory.
|
|
*
|
|
* Contributions after 2012-01-13 are licensed under the terms of the
|
|
* GNU GPL, version 2 or (at your option) any later version.
|
|
*/
|
|
|
|
#ifndef QEMU_MIGRATION_SOCKET_H
|
|
#define QEMU_MIGRATION_SOCKET_H
|
|
|
|
#include "io/channel.h"
|
|
#include "io/task.h"
|
|
|
|
void socket_send_channel_create(QIOTaskFunc f, void *data);
|
|
int socket_send_channel_destroy(QIOChannel *send);
|
|
|
|
void socket_start_incoming_migration(const char *str, Error **errp);
|
|
|
|
void socket_start_outgoing_migration(MigrationState *s, const char *str,
|
|
Error **errp);
|
|
#endif
|