mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53:55 -06:00

outgoing_args is a global cache of socket address to be reused in multifd. Freeing the cache in per-channel destructor is more or less a hack. Move it to multifd_send_cleanup_state() so it only get checked once. Use a small helper to do so because it's internal of socket.c. Reviewed-by: Fabiano Rosas <farosas@suse.de> Link: https://lore.kernel.org/r/20240222095301.171137-5-peterx@redhat.com Signed-off-by: Peter Xu <peterx@redhat.com>
34 lines
1,010 B
C
34 lines
1,010 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"
|
|
#include "qemu/sockets.h"
|
|
|
|
void socket_send_channel_create(QIOTaskFunc f, void *data);
|
|
QIOChannel *socket_send_channel_create_sync(Error **errp);
|
|
int socket_send_channel_destroy(QIOChannel *send);
|
|
|
|
void socket_start_incoming_migration(SocketAddress *saddr, Error **errp);
|
|
|
|
void socket_start_outgoing_migration(MigrationState *s,
|
|
SocketAddress *saddr, Error **errp);
|
|
void socket_cleanup_outgoing_migration(void);
|
|
|
|
#endif
|