master
h 27 lines 985 Bytes
Raw
1 /*
2 * Copyright (c) 2021-2023 Oracle and/or its affiliates.
3 *
4 * This work is licensed under the terms of the GNU GPL, version 2 or later.
5 * See the COPYING file in the top-level directory.
6 */
7
8 #ifndef QEMU_MIGRATION_FILE_H
9 #define QEMU_MIGRATION_FILE_H
10
11 #include "qapi/qapi-types-migration.h"
12 #include "io/channel.h"
13 #include "io/task.h"
14 #include "channel.h"
15 #include "multifd.h"
16
17 void file_connect_incoming(FileMigrationArgs *file_args, Error **errp);
18
19 QIOChannel *file_connect_outgoing(MigrationState *s,
20 FileMigrationArgs *file_args, Error **errp);
21 int file_parse_offset(char *filespec, uint64_t *offsetp, Error **errp);
22 void file_cleanup_outgoing_migration(void);
23 bool file_send_channel_create(gpointer opaque, Error **errp);
24 int file_write_ramblock_iov(QIOChannel *ioc, const struct iovec *iov,
25 int niov, MultiFDPages_t *pages, Error **errp);
26 int multifd_file_recv_data(MultiFDRecvParams *p, Error **errp);
27 #endif