]> xenbits.xensource.com Git - libvirt.git/commit
conf, qemu: enable NVDIMM support for ppc64
authorDaniel Henrique Barboza <danielhb413@gmail.com>
Mon, 23 Mar 2020 19:40:49 +0000 (16:40 -0300)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 24 Mar 2020 09:02:48 +0000 (10:02 +0100)
commit5540acb9a2bd33fb97a7446a610b602c9e8629a3
tree61b1cd60ac54dfafa2d027dad2adb002fc022f05
parent0011d8d2c87e6ee1c50fe3869d3269e460bae772
conf, qemu: enable NVDIMM support for ppc64

Using the 'uuid' element for ppc64 NVDIMM memory added in the
previous patch, use it in qemuBuildMemoryDeviceStr() to pass
it over to QEMU.

Another ppc64 restriction is the necessity of a mem->labelsize,
given than ppc64 only support label-area backed NVDIMMs.

Finally, we don't want ppc64 NVDIMMs to align up due to the
high risk of going beyond the end of file with a 256MiB
increment that the user didn't predict. Align it down
instead. If target size is less than the minimum of
256MiB + labelsize, error out since QEMU will error out
if we attempt to round it up to the minimum.

Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/conf/domain_conf.c
src/qemu/qemu_command.c
src/qemu/qemu_domain.c
src/qemu/qemu_domain.h
src/qemu/qemu_hotplug.c
tests/qemuxml2argvdata/memory-hotplug-nvdimm-ppc64.args [new file with mode: 0644]
tests/qemuxml2argvdata/memory-hotplug-nvdimm-ppc64.ppc64-latest.args [new file with mode: 0644]
tests/qemuxml2argvdata/memory-hotplug-nvdimm-ppc64.xml
tests/qemuxml2argvtest.c
tests/qemuxml2xmloutdata/memory-hotplug-nvdimm-ppc64.xml