]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuBuildMemoryBackendProps: Use boolean type for 'pmem' property
authorPeter Krempa <pkrempa@redhat.com>
Wed, 8 Jul 2020 07:13:42 +0000 (09:13 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 8 Jul 2020 09:40:18 +0000 (11:40 +0200)
commite95da4e5bf53ff977f440903df9f7343f2fb6f0e
tree8db05487b8ca5bb77e3ea1adb3bcc997acec6151
parentbc33b8c639113d0ba552bf8be5d33233582a2c75
qemuBuildMemoryBackendProps: Use boolean type for 'pmem' property

Commit 82576d8f35e used a string "on" to enable the 'pmem' property.
This is okay for the command line visitor, but the property is declared
as boolean in qemu and thus it will not work when using QMP.

Modify the type to boolean. This changes the command line, but
fortunately the command line visitor in qemu parses both 'yes' and 'on'
as true for the property.

https://bugzilla.redhat.com/show_bug.cgi?id=1854684

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_command.c
tests/qemuxml2argvdata/memory-hotplug-nvdimm-pmem.x86_64-latest.args