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>
This commit is contained in:
parent
8c4da4b521
commit
ce9d03fb3f
3 changed files with 138 additions and 83 deletions
|
|
@ -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' } }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue