2
0

file.h 971 B

1234567891011121314151617181920212223242526
  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. #ifndef QEMU_MIGRATION_FILE_H
  8. #define QEMU_MIGRATION_FILE_H
  9. #include "qapi/qapi-types-migration.h"
  10. #include "io/task.h"
  11. #include "channel.h"
  12. #include "multifd.h"
  13. void file_start_incoming_migration(FileMigrationArgs *file_args, Error **errp);
  14. void file_start_outgoing_migration(MigrationState *s,
  15. FileMigrationArgs *file_args, Error **errp);
  16. int file_parse_offset(char *filespec, uint64_t *offsetp, Error **errp);
  17. void file_cleanup_outgoing_migration(void);
  18. bool file_send_channel_create(gpointer opaque, Error **errp);
  19. int file_write_ramblock_iov(QIOChannel *ioc, const struct iovec *iov,
  20. int niov, MultiFDPages_t *pages, Error **errp);
  21. int multifd_file_recv_data(MultiFDRecvParams *p, Error **errp);
  22. #endif