161e8b148SJuan Quintela /* 261e8b148SJuan Quintela * QEMU live migration via socket 361e8b148SJuan Quintela * 461e8b148SJuan Quintela * Copyright Red Hat, Inc. 2009-2016 561e8b148SJuan Quintela * 661e8b148SJuan Quintela * Authors: 761e8b148SJuan Quintela * Chris Lalancette <clalance@redhat.com> 861e8b148SJuan Quintela * Daniel P. Berrange <berrange@redhat.com> 961e8b148SJuan Quintela * 1061e8b148SJuan Quintela * This work is licensed under the terms of the GNU GPL, version 2. See 1161e8b148SJuan Quintela * the COPYING file in the top-level directory. 1261e8b148SJuan Quintela * 1361e8b148SJuan Quintela * Contributions after 2012-01-13 are licensed under the terms of the 1461e8b148SJuan Quintela * GNU GPL, version 2 or (at your option) any later version. 1561e8b148SJuan Quintela */ 1661e8b148SJuan Quintela 1761e8b148SJuan Quintela #ifndef QEMU_MIGRATION_SOCKET_H 1861e8b148SJuan Quintela #define QEMU_MIGRATION_SOCKET_H 193854956aSJuan Quintela 203854956aSJuan Quintela #include "io/channel.h" 213854956aSJuan Quintela #include "io/task.h" 2234dfc5e4SHet Gala #include "qemu/sockets.h" 233854956aSJuan Quintela 243854956aSJuan Quintela void socket_send_channel_create(QIOTaskFunc f, void *data); 253854956aSJuan Quintela 2634dfc5e4SHet Gala void socket_start_incoming_migration(SocketAddress *saddr, Error **errp); 2761e8b148SJuan Quintela 2834dfc5e4SHet Gala void socket_start_outgoing_migration(MigrationState *s, 2934dfc5e4SHet Gala SocketAddress *saddr, Error **errp); 30*72b90b96SPeter Xu void socket_cleanup_outgoing_migration(void); 31*72b90b96SPeter Xu 3261e8b148SJuan Quintela #endif 33