On a Thursday in 2023, Peter Krempa wrote:
First patch reworks memory specification to use the explicit
'size'
parameter (since qemu v2.0.0-179-g6e1d3c1c85), the reset modifies memory
hotplug related checks to properly handle non-DIMM devices which don't
require DIMM slots.
Peter Krempa (4):
qemu_command: Always use modern syntax of '-m'
qemu_domain: Properly validate count of memory slots
conf: Allow omitting 'slots' attribute of <maxMemory>
qemuxml2(argv|xml)test: Add case for validating proper DIMM slot
validation
src/conf/domain_conf.c | 13 ++-
[...]
.../x86_64-q35-graphics.x86_64-latest.args | 2 +-
.../x86_64-q35-headless.x86_64-latest.args | 2 +-
tests/qemuxml2argvtest.c | 1 +
.../memory-hotplug-multiple.x86_64-latest.xml | 90 +++++++++++++++++++
tests/qemuxml2xmltest.c | 1 +
906 files changed, 1180 insertions(+), 920 deletions(-)
create mode 100644 tests/qemuxml2argvdata/memory-hotplug-multiple.x86_64-latest.args
create mode 100644 tests/qemuxml2argvdata/memory-hotplug-multiple.xml
create mode 100644 tests/qemuxml2xmloutdata/memory-hotplug-multiple.x86_64-latest.xml
Reviewed-by: Ján Tomko <jtomko(a)redhat.com>
Jano