xref: /openbmc/qemu/migration/fd.h (revision 83b4613ba835d6ed6dcee3001c7fc56dc7b21685)
1  /*
2   * QEMU live migration via generic fd
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_FD_H
18  #define QEMU_MIGRATION_FD_H
19  void fd_start_incoming_migration(const char *fdname, Error **errp);
20  
21  void fd_start_outgoing_migration(MigrationState *s, const char *fdname,
22                                   Error **errp);
23  void fd_cleanup_outgoing_migration(void);
24  int fd_args_get_fd(void);
25  #endif
26