ui/cocoa.m: Drop old macOS-10.12-and-earlier compat ifdefs
[qemu/armbru.git] / migration / target.c
bloba6ffa9a5ce312d1e64157b650827aa726eb4d364
1 /*
2 * QEMU live migration - functions that need to be compiled target-specific
4 * This work is licensed under the terms of the GNU GPL, version 2
5 * or (at your option) any later version.
6 */
8 #include "qemu/osdep.h"
9 #include "qapi/qapi-types-migration.h"
10 #include "migration.h"
11 #include CONFIG_DEVICES
13 #ifdef CONFIG_VFIO
14 #include "hw/vfio/vfio-common.h"
15 #endif
17 #ifdef CONFIG_VFIO
18 void migration_populate_vfio_info(MigrationInfo *info)
20 if (vfio_mig_active()) {
21 info->vfio = g_malloc0(sizeof(*info->vfio));
22 info->vfio->transferred = vfio_mig_bytes_transferred();
26 void migration_reset_vfio_bytes_transferred(void)
28 vfio_reset_bytes_transferred();
30 #else
31 void migration_populate_vfio_info(MigrationInfo *info)
35 void migration_reset_vfio_bytes_transferred(void)
38 #endif