summary refs log tree commit diff stats
path: root/hmp-commands.hx
diff options
context:
space:
mode:
authorLei Li <lilei@linux.vnet.ibm.com>2013-01-25 00:03:21 +0800
committerLuiz Capitulino <lcapitulino@redhat.com>2013-01-25 11:46:50 -0200
commit49b6d7220bce42e6c06e0dbb61969a997868491f (patch)
tree4c70d8cd393f2cd86e53fcaa671a78f659d6c6c5 /hmp-commands.hx
parent1f590cf9455c571799d1bfc0777255fa0796d4da (diff)
downloadfocaccia-qemu-49b6d7220bce42e6c06e0dbb61969a997868491f.tar.gz
focaccia-qemu-49b6d7220bce42e6c06e0dbb61969a997868491f.zip
QAPI: Introduce memchar-read QMP command
Signed-off-by: Lei Li <lilei@linux.vnet.ibm.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'hmp-commands.hx')
-rw-r--r--hmp-commands.hx21
1 files changed, 21 insertions, 0 deletions
diff --git a/hmp-commands.hx b/hmp-commands.hx
index bcfea11c38..bdd48f3469 100644
--- a/hmp-commands.hx
+++ b/hmp-commands.hx
@@ -858,6 +858,27 @@ to char device 'memory'.
 ETEXI
 
     {
+        .name       = "memchar_read",
+        .args_type  = "device:s,size:i",
+        .params     = "device size",
+        .help       = "Provide read interface for CirMemCharDriver. Read from"
+                      "it and return the data with size.",
+        .mhandler.cmd = hmp_memchar_read,
+    },
+
+STEXI
+@item memchar_read @var{device}
+@findex memchar_read
+Provide read interface for CirMemCharDriver. Read from char device
+'memory' and return the data.
+
+@var{size} is the size of data want to read from. Refer to unencoded
+size of the raw data, would adjust to the init size of the memchar
+if the requested size is larger than it.
+
+ETEXI
+
+    {
         .name       = "migrate",
         .args_type  = "detach:-d,blk:-b,inc:-i,uri:s",
         .params     = "[-d] [-b] [-i] uri",