summaryrefslogtreecommitdiffstats
path: root/monitor/hmp-cmds.c
diff options
context:
space:
mode:
authorKirti Wankhede2020-10-26 10:36:27 +0100
committerAlex Williamson2020-11-01 20:30:51 +0100
commit3710586caa5d91a52c0cf247e1c829a50f2e7b98 (patch)
tree4c9b1e449ace7dcd6ff85756a4771dd84305d359 /monitor/hmp-cmds.c
parentvfio: Make vfio-pci device migration capable (diff)
downloadqemu-3710586caa5d91a52c0cf247e1c829a50f2e7b98.tar.gz
qemu-3710586caa5d91a52c0cf247e1c829a50f2e7b98.tar.xz
qemu-3710586caa5d91a52c0cf247e1c829a50f2e7b98.zip
qapi: Add VFIO devices migration stats in Migration stats
Added amount of bytes transferred to the VM at destination by all VFIO devices Signed-off-by: Kirti Wankhede <kwankhede@nvidia.com> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'monitor/hmp-cmds.c')
-rw-r--r--monitor/hmp-cmds.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/monitor/hmp-cmds.c b/monitor/hmp-cmds.c
index 9789f4277f..56e9bad33d 100644
--- a/monitor/hmp-cmds.c
+++ b/monitor/hmp-cmds.c
@@ -357,6 +357,12 @@ void hmp_info_migrate(Monitor *mon, const QDict *qdict)
}
monitor_printf(mon, "]\n");
}
+
+ if (info->has_vfio) {
+ monitor_printf(mon, "vfio device transferred: %" PRIu64 " kbytes\n",
+ info->vfio->transferred >> 10);
+ }
+
qapi_free_MigrationInfo(info);
}