diff options
author | Hu Tao <hutao@cn.fujitsu.com> | 2014-06-16 18:05:41 +0800 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2014-06-19 18:44:21 +0300 |
commit | 76b5d8507d08db18bc0bd3c75349b357a82ff1a2 (patch) | |
tree | f6a8d8ddef7d83b15c760d47248b4fb631e8898a /qapi-schema.json | |
parent | 4cf1b76bf1e2cbb91b1123d47505a6586195800c (diff) | |
download | qemu-76b5d8507d08db18bc0bd3c75349b357a82ff1a2.zip qemu-76b5d8507d08db18bc0bd3c75349b357a82ff1a2.tar.gz qemu-76b5d8507d08db18bc0bd3c75349b357a82ff1a2.tar.bz2 |
qmp: add query-memdev
Add qmp command query-memdev to query for information
of memory devices
Signed-off-by: Hu Tao <hutao@cn.fujitsu.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'qapi-schema.json')
-rw-r--r-- | qapi-schema.json | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/qapi-schema.json b/qapi-schema.json index 10a324a..082bc3a 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -3154,3 +3154,43 @@ ## { 'enum': 'HostMemPolicy', 'data': [ 'default', 'preferred', 'bind', 'interleave' ] } + +## +# @Memdev: +# +# Information of memory device +# +# @size: memory device size +# +# @merge: enables or disables memory merge support +# +# @dump: includes memory device's memory in a core dump or not +# +# @prealloc: enables or disables memory preallocation +# +# @host-nodes: host nodes for its memory policy +# +# @policy: memory policy of memory device +# +# Since: 2.1 +## + +{ 'type': 'Memdev', + 'data': { + 'size': 'size', + 'merge': 'bool', + 'dump': 'bool', + 'prealloc': 'bool', + 'host-nodes': ['uint16'], + 'policy': 'HostMemPolicy' }} + +## +# @query-memdev: +# +# Returns information for all memory devices. +# +# Returns: a list of @Memdev. +# +# Since: 2.1 +## +{ 'command': 'query-memdev', 'returns': ['Memdev'] } |