]> git.ipfire.org Git - thirdparty/qemu.git/commit
machine: add mem compound property
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 14 Apr 2022 16:52:58 +0000 (12:52 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 12 May 2022 10:29:44 +0000 (12:29 +0200)
commitce9d03fb3f7a87f46a1a2fc3597f2f44541a0c9c
tree039abbb3c2f777c5642f1bae680fc71061a62f9d
parent8c4da4b52186e9d0c7233b0ffc796e78fdf3e7b3
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>
hw/core/machine.c
qapi/machine.json
softmmu/vl.c