diff options
| author | Wanlong Gao | 2014-05-14 11:43:08 +0200 |
|---|---|---|
| committer | Michael S. Tsirkin | 2014-06-19 17:44:18 +0200 |
| commit | 0042109a6ab629aebfb287ff7aee295f24fad40d (patch) | |
| tree | 41acc6dcd442a6ef425a0b1df96c431c5284d791 /qapi-schema.json | |
| parent | NUMA: Add numa_info structure to contain numa nodes info (diff) | |
| download | qemu-0042109a6ab629aebfb287ff7aee295f24fad40d.tar.gz qemu-0042109a6ab629aebfb287ff7aee295f24fad40d.tar.xz qemu-0042109a6ab629aebfb287ff7aee295f24fad40d.zip | |
NUMA: convert -numa option to use OptsVisitor
Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Tested-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
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 | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/qapi-schema.json b/qapi-schema.json index f5d89b024c..e65b7b1489 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -3097,3 +3097,35 @@ 'btn' : 'InputBtnEvent', 'rel' : 'InputMoveEvent', 'abs' : 'InputMoveEvent' } } + +## +# @NumaOptions +# +# A discriminated record of NUMA options. (for OptsVisitor) +# +# Since 2.1 +## +{ 'union': 'NumaOptions', + 'data': { + 'node': 'NumaNodeOptions' }} + +## +# @NumaNodeOptions +# +# Create a guest NUMA node. (for OptsVisitor) +# +# @nodeid: #optional NUMA node ID (increase by 1 from 0 if omitted) +# +# @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) +# +# Since: 2.1 +## +{ 'type': 'NumaNodeOptions', + 'data': { + '*nodeid': 'uint16', + '*cpus': ['uint16'], + '*mem': 'size' }} |
