diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2022-04-14 12:52:58 -0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2022-05-12 12:29:44 +0200 |
commit | ce9d03fb3f7a87f46a1a2fc3597f2f44541a0c9c (patch) | |
tree | 039abbb3c2f777c5642f1bae680fc71061a62f9d /qapi/machine.json | |
parent | 8c4da4b52186e9d0c7233b0ffc796e78fdf3e7b3 (diff) | |
download | qemu-ce9d03fb3f7a87f46a1a2fc3597f2f44541a0c9c.zip qemu-ce9d03fb3f7a87f46a1a2fc3597f2f44541a0c9c.tar.gz qemu-ce9d03fb3f7a87f46a1a2fc3597f2f44541a0c9c.tar.bz2 |
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/machine.json')
-rw-r--r-- | qapi/machine.json | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/qapi/machine.json b/qapi/machine.json index e3dcf5a..92480d4 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' } } |