From: "Michael R. Hines" <address@hidden>
This exposes throughput (in megabits/sec) through QMP.
Reviewed-by: Paolo Bonzini <address@hidden>
Reviewed-by: Chegu Vinod <address@hidden>
Tested-by: Chegu Vinod <address@hidden>
Tested-by: Michael R. Hines <address@hidden>
Signed-off-by: Michael R. Hines <address@hidden>
@@ -154,8 +154,10 @@ void hmp_info_migrate(Monitor *mon, const QDict *qdict)
if (info->has_status) {
monitor_printf(mon, "Migration status: %s\n", info->status);
- monitor_printf(mon, "total time: %" PRIu64 " milliseconds\n",
- info->total_time);
+ if (info->has_total_time) {
+ monitor_printf(mon, "total time: %" PRIu64 " milliseconds\n",
+ info->total_time);
+ }
if (info->has_expected_downtime) {
monitor_printf(mon, "expected downtime: %" PRIu64 "
milliseconds\n",
info->expected_downtime);