diff options
author | Kirti Wankhede | 2020-10-26 10:36:27 +0100 |
---|---|---|
committer | Alex Williamson | 2020-11-01 20:30:51 +0100 |
commit | 3710586caa5d91a52c0cf247e1c829a50f2e7b98 (patch) | |
tree | 4c9b1e449ace7dcd6ff85756a4771dd84305d359 /monitor/hmp-cmds.c | |
parent | vfio: Make vfio-pci device migration capable (diff) | |
download | qemu-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.c | 6 |
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); } |