From 727f005e6a5416ea903d0ccc2428cbdc663aa1d2 Mon Sep 17 00:00:00 2001 From: Zhi Yong Wu Date: Tue, 8 Nov 2011 13:00:31 +0800 Subject: hmp/qmp: add block_set_io_throttle Signed-off-by: Zhi Yong Wu Signed-off-by: Stefan Hajnoczi Signed-off-by: Kevin Wolf --- hmp.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'hmp.c') diff --git a/hmp.c b/hmp.c index 443d3a7ff4..dfab7ad9bb 100644 --- a/hmp.c +++ b/hmp.c @@ -216,6 +216,16 @@ void hmp_info_block(Monitor *mon) info->value->inserted->ro, info->value->inserted->drv, info->value->inserted->encrypted); + + monitor_printf(mon, " bps=%" PRId64 " bps_rd=%" PRId64 + " bps_wr=%" PRId64 " iops=%" PRId64 + " iops_rd=%" PRId64 " iops_wr=%" PRId64, + info->value->inserted->bps, + info->value->inserted->bps_rd, + info->value->inserted->bps_wr, + info->value->inserted->iops, + info->value->inserted->iops_rd, + info->value->inserted->iops_wr); } else { monitor_printf(mon, " [not inserted]"); } -- cgit v1.2.3