2017-04-05 18:40:11 +03:00
|
|
|
/*
|
|
|
|
* 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
|
2018-02-28 14:05:15 +03:00
|
|
|
|
|
|
|
#include "io/channel.h"
|
|
|
|
#include "io/task.h"
|
2023-10-23 21:20:44 +03:00
|
|
|
#include "qemu/sockets.h"
|
2018-02-28 14:05:15 +03:00
|
|
|
|
|
|
|
void socket_send_channel_create(QIOTaskFunc f, void *data);
|
2022-07-07 21:55:02 +03:00
|
|
|
QIOChannel *socket_send_channel_create_sync(Error **errp);
|
2018-02-28 14:05:15 +03:00
|
|
|
int socket_send_channel_destroy(QIOChannel *send);
|
|
|
|
|
2023-10-23 21:20:44 +03:00
|
|
|
void socket_start_incoming_migration(SocketAddress *saddr, Error **errp);
|
2017-04-05 18:40:11 +03:00
|
|
|
|
2023-10-23 21:20:44 +03:00
|
|
|
void socket_start_outgoing_migration(MigrationState *s,
|
|
|
|
SocketAddress *saddr, Error **errp);
|
2017-04-05 18:40:11 +03:00
|
|
|
#endif
|