]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Prefer nvdimmPath over hugepages for memory-backend-file
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 9 Aug 2018 14:29:17 +0000 (16:29 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 13 Aug 2018 14:33:45 +0000 (16:33 +0200)
commit9eae8398edde9446ecc99f4f393bea94652fb6a2
tree9107bc49ee89314b6c3808c055b0b716c886be37
parentbaebd9f3d84b5cb86c7c6f35eb41cf9fb7e9b624
qemu: Prefer nvdimmPath over hugepages for memory-backend-file

If a domain has hugepages configured and we're currently building
memory-backend-file for a nvdimm device that domain has we will
put hugepages path onto the command line. It should have been
nvdimm path configured in the XML.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
src/qemu/qemu_command.c
tests/qemuxml2argvdata/hugepages-nvdimm.x86_64-latest.args [new file with mode: 0644]
tests/qemuxml2argvdata/hugepages-nvdimm.xml [new file with mode: 0644]
tests/qemuxml2argvtest.c
tests/qemuxml2xmloutdata/hugepages-nvdimm.xml [new symlink]
tests/qemuxml2xmltest.c