aboutsummaryrefslogtreecommitdiff
path: root/monitor.c
diff options
context:
space:
mode:
authorHu Tao <hutao@cn.fujitsu.com>2014-05-14 17:43:35 +0800
committerMichael S. Tsirkin <mst@redhat.com>2014-06-19 18:44:21 +0300
commiteb1539b2343f2040decab39ccb9dc50dda75001c (patch)
tree58dab92e5a6277f368df33fb82fb807f0d2d0696 /monitor.c
parent76b5d8507d08db18bc0bd3c75349b357a82ff1a2 (diff)
downloadqemu-eb1539b2343f2040decab39ccb9dc50dda75001c.zip
qemu-eb1539b2343f2040decab39ccb9dc50dda75001c.tar.gz
qemu-eb1539b2343f2040decab39ccb9dc50dda75001c.tar.bz2
hmp: add info memdev
This is the hmp counterpart of qmp query-memdev. Signed-off-by: Hu Tao <hutao@cn.fujitsu.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Acked-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> MST: fix build on 32 bit
Diffstat (limited to 'monitor.c')
-rw-r--r--monitor.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/monitor.c b/monitor.c
index ca17e42..afbb2d7 100644
--- a/monitor.c
+++ b/monitor.c
@@ -2964,6 +2964,13 @@ static mon_cmd_t info_cmds[] = {
.mhandler.cmd = hmp_info_tpm,
},
{
+ .name = "memdev",
+ .args_type = "",
+ .params = "",
+ .help = "show the memory device",
+ .mhandler.cmd = hmp_info_memdev,
+ },
+ {
.name = NULL,
},
};