xref: /qemu/hw/vfio/migration-multifd.h (revision 3228d311ab1882f75b04d080d33a71fc7a0bcac5)
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-common.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_multifd_load_state_buffer(void *opaque, char *data, size_t data_size,
24                                     Error **errp);
25 
26 #endif
27