]> xenbits.xensource.com Git - libvirt.git/commit
conf: Allow omitting 'slots' attribute of <maxMemory>
authorPeter Krempa <pkrempa@redhat.com>
Wed, 21 Jun 2023 14:01:26 +0000 (16:01 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 26 Jun 2023 10:58:24 +0000 (12:58 +0200)
commite4b4765f4f2b24035402510263021bcf55bbea38
tree6f7dd0176bf5dcdbf672abe147a9175975459e31
parente3ce39195c82c4e8f54ddad73e192d9317c9bb39
conf: Allow omitting 'slots' attribute of <maxMemory>

Memory slots are required only for DIMM-like devices, but the maximum
memory address space is relevant also for other non-DIMM memory devices
such as virtio-mem. Allow configurations where no slots are added.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/conf/domain_conf.c
src/conf/domain_postparse.c
src/conf/schemas/domaincommon.rng
tests/qemuxml2argvdata/memory-hotplug-virtio-mem.x86_64-latest.args
tests/qemuxml2argvdata/memory-hotplug-virtio-mem.xml
tests/qemuxml2argvdata/memory-hotplug-virtio-pmem.x86_64-5.2.0.args
tests/qemuxml2argvdata/memory-hotplug-virtio-pmem.x86_64-latest.args
tests/qemuxml2argvdata/memory-hotplug-virtio-pmem.xml