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
This commit is contained in:
Hu Tao 2014-05-14 17:43:35 +08:00 committed by Michael S. Tsirkin
parent 76b5d8507d
commit eb1539b234
3 changed files with 44 additions and 0 deletions

View file

@ -2963,6 +2963,13 @@ static mon_cmd_t info_cmds[] = {
.help = "show the TPM device",
.mhandler.cmd = hmp_info_tpm,
},
{
.name = "memdev",
.args_type = "",
.params = "",
.help = "show the memory device",
.mhandler.cmd = hmp_info_memdev,
},
{
.name = NULL,
},