master
h 37 lines 1.11 KB
Raw
1 /*
2 * Multifd VFIO migration
3 *
4 * Copyright (C) 2024,2025 Oracle and/or its affiliates.
5 *
6 * This work is licensed under the terms of the GNU GPL, version 2 or later.
7 * See the COPYING file in the top-level directory.
8 *
9 * SPDX-License-Identifier: GPL-2.0-or-later
10 */
11
12 #ifndef HW_VFIO_MIGRATION_MULTIFD_H
13 #define HW_VFIO_MIGRATION_MULTIFD_H
14
15 #include "hw/vfio/vfio-device.h"
16
17 bool vfio_multifd_setup(VFIODevice *vbasedev, bool alloc_multifd, Error **errp);
18 void vfio_multifd_cleanup(VFIODevice *vbasedev);
19
20 bool vfio_multifd_transfer_supported(void);
21 bool vfio_multifd_transfer_enabled(VFIODevice *vbasedev);
22
23 bool vfio_load_config_after_iter(VFIODevice *vbasedev);
24 bool vfio_multifd_load_state_buffer(void *opaque, char *data, size_t data_size,
25 Error **errp);
26
27 int vfio_load_state_config_load_ready(VFIODevice *vbasedev);
28
29 void vfio_multifd_emit_dummy_eos(VFIODevice *vbasedev, QEMUFile *f);
30
31 bool
32 vfio_multifd_save_complete_precopy_thread(SaveCompletePrecopyThreadData *d,
33 Error **errp);
34
35 int vfio_multifd_switchover_start(VFIODevice *vbasedev);
36
37 #endif