mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
qmp: add query-memory-devices command
... allowing to get state of present memory devices. Currently implemented only for PCDIMMDevice. Signed-off-by: Igor Mammedov <imammedo@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Acked-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
c3ba309507
commit
6f2e27301d
7 changed files with 138 additions and 0 deletions
|
@ -3611,4 +3611,31 @@ Example (1):
|
|||
]
|
||||
}
|
||||
|
||||
EQMP
|
||||
|
||||
{
|
||||
.name = "query-memory-devices",
|
||||
.args_type = "",
|
||||
.mhandler.cmd_new = qmp_marshal_input_query_memory_devices,
|
||||
},
|
||||
|
||||
SQMP
|
||||
@query-memory-devices
|
||||
--------------------
|
||||
|
||||
Return a list of memory devices.
|
||||
|
||||
Example:
|
||||
-> { "execute": "query-memory-devices" }
|
||||
<- { "return": [ { "data":
|
||||
{ "addr": 5368709120,
|
||||
"hotpluggable": true,
|
||||
"hotplugged": true,
|
||||
"id": "d1",
|
||||
"memdev": "/objects/memX",
|
||||
"node": 0,
|
||||
"size": 1073741824,
|
||||
"slot": 0},
|
||||
"type": "dimm"
|
||||
} ] }
|
||||
EQMP
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue