summaryrefslogtreecommitdiffstats
path: root/monitor.c
diff options
context:
space:
mode:
authorZhu Guihua2014-09-23 07:35:19 +0200
committerLuiz Capitulino2014-09-26 19:37:06 +0200
commita631892f9d6440812af98588e9635f1a2a7260ff (patch)
treec90961229694debc06c6f0aa2b2b51cc1bbe507a /monitor.c
parentqemu-socket: Eliminate silly QERR_ macros (diff)
downloadqemu-a631892f9d6440812af98588e9635f1a2a7260ff.tar.gz
qemu-a631892f9d6440812af98588e9635f1a2a7260ff.tar.xz
qemu-a631892f9d6440812af98588e9635f1a2a7260ff.zip
Add HMP command "info memory-devices"
Provides HMP equivalent of QMP query-memory-devices command. Signed-off-by: Zhu Guihua <zhugh.fnst@cn.fujitsu.com> Reviewed-By: Igor Mammedov <imammedo@redhat.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
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 48850afe86..2d14f394d6 100644
--- a/monitor.c
+++ b/monitor.c
@@ -2922,6 +2922,13 @@ static mon_cmd_t info_cmds[] = {
.mhandler.cmd = hmp_info_memdev,
},
{
+ .name = "memory-devices",
+ .args_type = "",
+ .params = "",
+ .help = "show memory devices",
+ .mhandler.cmd = hmp_info_memory_devices,
+ },
+ {
.name = NULL,
},
};