mirror of
https://github.com/mii443/qemu.git
synced 2025-12-16 17:18:49 +00:00
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:
@@ -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' } }
|
||||
|
||||
Reference in New Issue
Block a user