]> git.proxmox.com Git - mirror_qemu.git/blobdiff - hmp-commands.hx
Make qemu-io commands available in HMP
[mirror_qemu.git] / hmp-commands.hx
index 4f5a3fd7d56a48dbd44e3d4b43d62a8127ca3432..396691a5d61e32753aff6f5cfd13f349cd0667fc 100644 (file)
@@ -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
 
     {