summaryrefslogtreecommitdiff
path: root/qmp-commands.hx
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@linux.vnet.ibm.com>2012-01-18 14:40:48 +0000
committerKevin Wolf <kwolf@redhat.com>2012-01-26 14:49:18 +0100
commit370521a1d6f5537ea7271c119f3fbb7b0fa57063 (patch)
treec94fba9ff82e7690dd9d20a6420cd808b40d5d11 /qmp-commands.hx
parent2d47c6e9aa2475807913bd46dfca55980cca9fb4 (diff)
downloadqemu-370521a1d6f5537ea7271c119f3fbb7b0fa57063.tar.gz
qemu-370521a1d6f5537ea7271c119f3fbb7b0fa57063.tar.bz2
qemu-370521a1d6f5537ea7271c119f3fbb7b0fa57063.zip
qmp: add block_job_cancel command
Add block_job_cancel, which stops an active block streaming operation. When the operation has been cancelled the new BLOCK_JOB_CANCELLED event is emitted. Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> Acked-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'qmp-commands.hx')
-rw-r--r--qmp-commands.hx6
1 files changed, 6 insertions, 0 deletions
diff --git a/qmp-commands.hx b/qmp-commands.hx
index e4615ca795..0795c5d48d 100644
--- a/qmp-commands.hx
+++ b/qmp-commands.hx
@@ -661,6 +661,12 @@ EQMP
},
{
+ .name = "block_job_cancel",
+ .args_type = "device:B",
+ .mhandler.cmd_new = qmp_marshal_input_block_job_cancel,
+ },
+
+ {
.name = "blockdev-snapshot-sync",
.args_type = "device:B,snapshot-file:s,format:s?",
.mhandler.cmd_new = qmp_marshal_input_blockdev_snapshot_sync,