[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v3 2/8] qapi: convert NumaOptions into a flat union
From: |
Kővágó, Zoltán |
Subject: |
[Qemu-devel] [PATCH v3 2/8] qapi: convert NumaOptions into a flat union |
Date: |
Thu, 18 Jun 2015 18:43:44 +0200 |
Signed-off-by: Kővágó, Zoltán <address@hidden>
---
numa.c | 2 +-
qapi-schema.json | 47 ++++++++++++++++++++++++++++++++++++-----------
2 files changed, 37 insertions(+), 12 deletions(-)
diff --git a/numa.c b/numa.c
index d227ccc..822a22e 100644
--- a/numa.c
+++ b/numa.c
@@ -141,7 +141,7 @@ static int parse_numa(void *opaque, QemuOpts *opts, Error
**errp)
}
switch (object->kind) {
- case NUMA_OPTIONS_KIND_NODE:
+ case NUMA_DRIVER_NODE:
numa_node_parse(object->node, opts, &err);
if (err) {
goto error;
diff --git a/qapi-schema.json b/qapi-schema.json
index 106008c..7ebf99e 100644
--- a/qapi-schema.json
+++ b/qapi-schema.json
@@ -3537,17 +3537,6 @@
'data': { '*console':'int', 'events': [ 'InputEvent' ] } }
##
-# @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)
@@ -3574,6 +3563,42 @@
'*memdev': 'str' }}
##
+# @NumaDriver
+#
+# List of possible numa drivers.
+#
+# Since: 2.4
+##
+{ 'enum': 'NumaDriver',
+ 'data': [ 'node' ] }
+
+##
+# @NumaCommonOptions
+#
+# Common set of numa options.
+#
+# @type: the numa driver to use
+#
+# Since: 2.4
+##
+{ 'struct': 'NumaCommonOptions',
+ 'data': {
+ 'type': 'NumaDriver' } }
+
+##
+# @NumaOptions
+#
+# A discriminated record of NUMA options. (for OptsVisitor)
+#
+# Since 2.1
+##
+{ 'union': 'NumaOptions',
+ 'base': 'NumaCommonOptions',
+ 'discriminator': 'type',
+ 'data': {
+ 'node': 'NumaNodeOptions' }}
+
+##
# @HostMemPolicy
#
# Host memory policy types
--
2.4.3
- [Qemu-devel] [PATCH v3 0/8] -audiodev option, Kővágó, Zoltán, 2015/06/18
- [Qemu-devel] [PATCH v3 2/8] qapi: convert NumaOptions into a flat union,
Kővágó, Zoltán <=
- [Qemu-devel] [PATCH v3 4/8] qapi: qapi for audio backends, Kővágó, Zoltán, 2015/06/18
- [Qemu-devel] [PATCH v3 1/8] qapi: support implicit structs in OptsVisitor, Kővágó, Zoltán, 2015/06/18
- [Qemu-devel] [PATCH v3 6/8] opts: produce valid command line in qemu_opts_print, Kővágó, Zoltán, 2015/06/18
- [Qemu-devel] [PATCH v3 5/8] qapi: support nested structs in OptsVisitor, Kővágó, Zoltán, 2015/06/18
- [Qemu-devel] [PATCH v3 7/8] audio: use qapi AudioFormat instead of audfmt_e, Kővágó, Zoltán, 2015/06/18
- [Qemu-devel] [PATCH v3 3/8] qapi: change Netdev and NetLegacy into a flat union, Kővágó, Zoltán, 2015/06/18