From 2d47c6e9aa2475807913bd46dfca55980cca9fb4 Mon Sep 17 00:00:00 2001 From: Stefan Hajnoczi Date: Wed, 18 Jan 2012 14:40:47 +0000 Subject: qmp: add block_job_set_speed command Add block_job_set_speed, which sets the maximum speed for a background block operation. Signed-off-by: Stefan Hajnoczi Acked-by: Luiz Capitulino Signed-off-by: Kevin Wolf --- hmp-commands.hx | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'hmp-commands.hx') diff --git a/hmp-commands.hx b/hmp-commands.hx index 5f09594756..813705ee35 100644 --- a/hmp-commands.hx +++ b/hmp-commands.hx @@ -81,6 +81,20 @@ STEXI @item block_stream @findex block_stream Copy data from a backing file into a block device. +ETEXI + + { + .name = "block_job_set_speed", + .args_type = "device:B,value:o", + .params = "device value", + .help = "set maximum speed for a background block operation", + .mhandler.cmd = hmp_block_job_set_speed, + }, + +STEXI +@item block_job_set_stream +@findex block_job_set_stream +Set maximum speed for a background block operation. ETEXI { -- cgit v1.2.1