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_multifd_load_state_buffer(void *opaque, char *data, size_t data_size, 24 Error **errp); 25 26 void vfio_multifd_emit_dummy_eos(VFIODevice *vbasedev, QEMUFile *f); 27 28 bool 29 vfio_multifd_save_complete_precopy_thread(SaveLiveCompletePrecopyThreadData *d, 30 Error **errp); 31 32 int vfio_multifd_switchover_start(VFIODevice *vbasedev); 33 34 #endif 35