]> git.proxmox.com Git - mirror_qemu.git/blame - migration/target.c
softfloat: Add flags specific to Inf / Inf and 0 / 0
[mirror_qemu.git] / migration / target.c
CommitLineData
43bd0bf3
TH
1/*
2 * QEMU live migration - functions that need to be compiled target-specific
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
12#ifdef CONFIG_VFIO
13#include "hw/vfio/vfio-common.h"
14#endif
15
16void populate_vfio_info(MigrationInfo *info)
17{
18#ifdef CONFIG_VFIO
19 if (vfio_mig_active()) {
20 info->has_vfio = true;
21 info->vfio = g_malloc0(sizeof(*info->vfio));
22 info->vfio->transferred = vfio_mig_bytes_transferred();
23 }
24#endif
25}