]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: Introduce optional 'uuid' element for NVDIMM memory
authorDaniel Henrique Barboza <danielhb413@gmail.com>
Mon, 23 Mar 2020 19:40:47 +0000 (16:40 -0300)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 24 Mar 2020 09:02:38 +0000 (10:02 +0100)
commit08ed673901bb5b4f419b37bcce9b11d31ce370e6
treec539f5b749cb3a759ce98c59a6cca25f16ef75d9
parent1d5f16ba812ca7fd4f16e7d434ba6a76d9ae5a52
conf: Introduce optional 'uuid' element for NVDIMM memory

ppc64 NVDIMM support was implemented in QEMU by commit [1].
The support is similar to what x86 already does, aside from
an extra 'uuid' element.

This patch introduces a new optional 'uuid' element for the
NVDIMM memory model. This element behaves like the 'uuid'
element of the domain definition - if absent, we'll create
a new one, otherwise use the one provided by the XML.
The 'uuid' element is exclusive to pseries guests and are
unavailable for other architectures.

Next patch will use this new element to add NVDIMM support
for ppc64.

[1] https://github.com/qemu/qemu/commit/ee3a71e36654317b14ede0290e87628f8b79f850

Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
docs/schemas/domaincommon.rng
src/conf/domain_conf.c
src/conf/domain_conf.h
tests/qemuxml2argvdata/memory-hotplug-nvdimm-ppc64.xml [new file with mode: 0644]
tests/qemuxml2xmloutdata/memory-hotplug-nvdimm-ppc64.xml [new file with mode: 0644]
tests/qemuxml2xmltest.c