]> git.ipfire.org Git - thirdparty/libvirt.git/commit
domain_conf.c: auto-align pSeries NVDIMM in virDomainMemoryDefPostParse()
authorDaniel Henrique Barboza <danielhb413@gmail.com>
Tue, 22 Sep 2020 12:12:07 +0000 (09:12 -0300)
committerDaniel Henrique Barboza <danielhb413@gmail.com>
Wed, 23 Sep 2020 16:19:47 +0000 (13:19 -0300)
commitd3f3c2c97f9b92c982ff809479495f44614edb88
treee5890e130b84c654f30b1297778d8d83b6ac4b24
parentace5931553c87beebb6b3cd994061742b3f88238
domain_conf.c: auto-align pSeries NVDIMM in virDomainMemoryDefPostParse()

The alignment for the pSeries NVDIMM does not depend on runtime
constraints. This means that it can be done in device parse
time, instead of runtime, allowing the domain XML to reflect
what the auto-alignment would do when the domain starts.

This brings consistency between the NVDIMM size reported by the
domain XML and what the guest sees, without impacting existing
guests that are using an unaligned size - they'll work as usual,
but the domain XML will be updated with the actual size of the
NVDIMM.

Reviewed-by: Andrea Bolognani <abologna@redhat.com>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
src/conf/domain_conf.c
tests/qemuxml2xmloutdata/memory-hotplug-nvdimm-ppc64.xml