2023-09-08 07:22:10 -07:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2021-2023 Oracle and/or its affiliates.
|
|
|
|
*
|
|
|
|
* This work is licensed under the terms of the GNU GPL, version 2 or later.
|
|
|
|
* See the COPYING file in the top-level directory.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef QEMU_MIGRATION_FILE_H
|
|
|
|
#define QEMU_MIGRATION_FILE_H
|
|
|
|
|
2023-10-23 15:20:47 -03:00
|
|
|
#include "qapi/qapi-types-migration.h"
|
2024-02-29 12:30:11 -03:00
|
|
|
#include "io/task.h"
|
|
|
|
#include "channel.h"
|
2024-02-29 12:30:15 -03:00
|
|
|
#include "multifd.h"
|
2023-10-23 15:20:47 -03:00
|
|
|
|
|
|
|
void file_start_incoming_migration(FileMigrationArgs *file_args, Error **errp);
|
|
|
|
|
|
|
|
void file_start_outgoing_migration(MigrationState *s,
|
|
|
|
FileMigrationArgs *file_args, Error **errp);
|
2023-10-23 15:20:42 -03:00
|
|
|
int file_parse_offset(char *filespec, uint64_t *offsetp, Error **errp);
|
2024-02-29 12:30:11 -03:00
|
|
|
void file_cleanup_outgoing_migration(void);
|
|
|
|
bool file_send_channel_create(gpointer opaque, Error **errp);
|
2024-02-29 12:30:14 -03:00
|
|
|
int file_write_ramblock_iov(QIOChannel *ioc, const struct iovec *iov,
|
2024-08-27 14:45:51 -03:00
|
|
|
int niov, MultiFDPages_t *pages, Error **errp);
|
2024-02-29 12:30:15 -03:00
|
|
|
int multifd_file_recv_data(MultiFDRecvParams *p, Error **errp);
|
2023-09-08 07:22:10 -07:00
|
|
|
#endif
|