From 587da2c39c9ace168f4d01fa446a54ae998a2553 Mon Sep 17 00:00:00 2001 From: Kevin Wolf Date: Wed, 5 Jun 2013 14:19:41 +0200 Subject: Make qemu-io commands available in HMP It was decided to not make this command available in QMP in order to make clear that this is not supposed to be a stable API and should be used only for testing and debugging purposes. Signed-off-by: Kevin Wolf Signed-off-by: Stefan Hajnoczi --- hmp-commands.hx | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'hmp-commands.hx') diff --git a/hmp-commands.hx b/hmp-commands.hx index 4f5a3fd7d5..396691a5d6 100644 --- a/hmp-commands.hx +++ b/hmp-commands.hx @@ -1550,6 +1550,22 @@ STEXI Removes the chardev @var{id}. +ETEXI + + { + .name = "qemu-io", + .args_type = "device:B,command:s", + .params = "[device] \"[command]\"", + .help = "run a qemu-io command on a block device", + .mhandler.cmd = hmp_qemu_io, + }, + +STEXI +@item qemu-io @var{device} @var{command} +@findex qemu-io + +Executes a qemu-io command on the given block device. + ETEXI { -- cgit v1.2.1