Juan Quintela | 61e8b14 | 2017-04-05 17:40:11 +0200 | [diff] [blame] | 1 | /* |
| 2 | * QEMU live migration via socket |
| 3 | * |
| 4 | * Copyright Red Hat, Inc. 2009-2016 |
| 5 | * |
| 6 | * Authors: |
| 7 | * Chris Lalancette <clalance@redhat.com> |
| 8 | * Daniel P. Berrange <berrange@redhat.com> |
| 9 | * |
| 10 | * This work is licensed under the terms of the GNU GPL, version 2. See |
| 11 | * the COPYING file in the top-level directory. |
| 12 | * |
| 13 | * Contributions after 2012-01-13 are licensed under the terms of the |
| 14 | * GNU GPL, version 2 or (at your option) any later version. |
| 15 | */ |
| 16 | |
| 17 | #ifndef QEMU_MIGRATION_SOCKET_H |
| 18 | #define QEMU_MIGRATION_SOCKET_H |
Juan Quintela | 3854956 | 2018-02-28 12:05:15 +0100 | [diff] [blame] | 19 | |
| 20 | #include "io/channel.h" |
| 21 | #include "io/task.h" |
Het Gala | 34dfc5e | 2023-10-23 15:20:44 -0300 | [diff] [blame] | 22 | #include "qemu/sockets.h" |
Juan Quintela | 3854956 | 2018-02-28 12:05:15 +0100 | [diff] [blame] | 23 | |
| 24 | void socket_send_channel_create(QIOTaskFunc f, void *data); |
Peter Xu | 36f62f1 | 2022-07-07 14:55:02 -0400 | [diff] [blame] | 25 | QIOChannel *socket_send_channel_create_sync(Error **errp); |
Juan Quintela | 3854956 | 2018-02-28 12:05:15 +0100 | [diff] [blame] | 26 | int socket_send_channel_destroy(QIOChannel *send); |
| 27 | |
Het Gala | 34dfc5e | 2023-10-23 15:20:44 -0300 | [diff] [blame] | 28 | void socket_start_incoming_migration(SocketAddress *saddr, Error **errp); |
Juan Quintela | 61e8b14 | 2017-04-05 17:40:11 +0200 | [diff] [blame] | 29 | |
Het Gala | 34dfc5e | 2023-10-23 15:20:44 -0300 | [diff] [blame] | 30 | void socket_start_outgoing_migration(MigrationState *s, |
| 31 | SocketAddress *saddr, Error **errp); |
Peter Xu | 72b90b9 | 2024-02-22 17:53:00 +0800 | [diff] [blame^] | 32 | void socket_cleanup_outgoing_migration(void); |
| 33 | |
Juan Quintela | 61e8b14 | 2017-04-05 17:40:11 +0200 | [diff] [blame] | 34 | #endif |