master
c 24 lines 597 Bytes
Raw
1 /*
2 * QEMU live migration - VFIO
3 *
4 * This work is licensed under the terms of the GNU GPL, version 2
5 * or (at your option) any later version.
6 */
7
8 #include "qemu/osdep.h"
9 #include "qapi/qapi-types-migration.h"
10 #include "migration.h"
11 #include "hw/vfio/vfio-migration.h"
12
13 void migration_populate_vfio_info(MigrationInfo *info)
14 {
15 if (vfio_migration_active()) {
16 info->vfio = g_malloc0(sizeof(*info->vfio));
17 info->vfio->transferred = vfio_migration_bytes_transferred();
18 }
19 }
20
21 void migration_reset_vfio_bytes_transferred(void)
22 {
23 vfio_migration_reset_bytes_transferred();
24 }