path: root/qapi-schema.json
diff options
authorPaolo Bonzini <pbonzini@redhat.com>2014-05-14 17:43:17 +0800
committerMichael S. Tsirkin <mst@redhat.com>2014-06-19 18:44:19 +0300
commit7febe36f9adbb34756a6a6765a36ea49b6e502ac (patch)
tree34a47adbcfd145e26558aff8f38168c6cb057e67 /qapi-schema.json
parent1f21772db0b14049b1b4bfef1f039b40827c676f (diff)
numa: add -numa node,memdev= option
This option provides the infrastructure for binding guest NUMA nodes to host NUMA nodes. For example: -object memory-ram,size=1024M,policy=bind,host-nodes=0,id=ram-node0 \ -numa node,nodeid=0,cpus=0,memdev=ram-node0 \ -object memory-ram,size=1024M,policy=interleave,host-nodes=1-3,id=ram-node1 \ -numa node,nodeid=1,cpus=1,memdev=ram-node1 The option replaces "-numa node,mem=". Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> 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> MST: conflict resolution
Diffstat (limited to 'qapi-schema.json')
1 files changed, 8 insertions, 3 deletions
diff --git a/qapi-schema.json b/qapi-schema.json
index e65b7b1489..e05f8ba4f9 100644
--- a/qapi-schema.json
+++ b/qapi-schema.json
@@ -3119,8 +3119,12 @@
# @cpus: #optional VCPUs belonging to this node (assign VCPUS round-robin
# if omitted)
-# @mem: #optional memory size of this node (equally divide total memory among
-# nodes if omitted)
+# @mem: #optional memory size of this node; mutually exclusive with @memdev.
+# Equally divide total memory among nodes if both @mem and @memdev are
+# omitted.
+# @memdev: #optional memory backend object. If specified for one node,
+# it must be specified for all nodes.
# Since: 2.1
@@ -3128,4 +3132,5 @@
'data': {
'*nodeid': 'uint16',
'*cpus': ['uint16'],
- '*mem': 'size' }}
+ '*mem': 'size',
+ '*memdev': 'str' }}