summaryrefslogtreecommitdiffstats
path: root/qapi
diff options
context:
space:
mode:
authorPaolo Bonzini2022-04-14 18:52:58 +0200
committerPaolo Bonzini2022-05-12 12:29:44 +0200
commitce9d03fb3f7a87f46a1a2fc3597f2f44541a0c9c (patch)
tree039abbb3c2f777c5642f1bae680fc71061a62f9d /qapi
parentmachine: add boot compound property (diff)
downloadqemu-ce9d03fb3f7a87f46a1a2fc3597f2f44541a0c9c.tar.gz
qemu-ce9d03fb3f7a87f46a1a2fc3597f2f44541a0c9c.tar.xz
qemu-ce9d03fb3f7a87f46a1a2fc3597f2f44541a0c9c.zip
machine: add mem compound property
Make -m syntactic sugar for a compound property "-machine mem.{size,max-size,slots}". The new property does not have the magic conversion to megabytes of unsuffixed arguments, and also does not understand that "0" means the default size (you have to leave it out to get the default). This means that we need to convert the QemuOpts by hand to a QDict. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Message-Id: <20220414165300.555321-4-pbonzini@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'qapi')
-rw-r--r--qapi/machine.json18
1 files changed, 18 insertions, 0 deletions
diff --git a/qapi/machine.json b/qapi/machine.json
index e3dcf5a119..92480d4044 100644
--- a/qapi/machine.json
+++ b/qapi/machine.json
@@ -1614,3 +1614,21 @@
##
{ 'enum': 'SmbiosEntryPointType',
'data': [ '32', '64' ] }
+
+##
+# @MemorySizeConfiguration:
+#
+# Schema for memory size configuration.
+#
+# @size: memory size in bytes
+#
+# @max-size: maximum hotpluggable memory size in bytes
+#
+# @slots: number of available memory slots for hotplug
+#
+# Since: 7.1
+##
+{ 'struct': 'MemorySizeConfiguration', 'data': {
+ '*size': 'size',
+ '*max-size': 'size',
+ '*slots': 'uint64' } }