]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuBuildMemoryBackendProps: Respect //memoryBacking/allocation/@mode=immediate
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 25 May 2020 12:35:40 +0000 (14:35 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 1 Oct 2020 10:02:19 +0000 (12:02 +0200)
commit0217c5a6b4221f5488dad063d92db644d105e24d
tree20373f3b4b620a3c8143eabeb739c269f7003628
parenteda5cc7a6290d42ded07ec31aba23ddb5dd27efa
qemuBuildMemoryBackendProps: Respect //memoryBacking/allocation/@mode=immediate

If user specifies immediate memory allocation in the domain XML,
they want QEMU to fully allocate its memory. And if the memory
was allocated using plain '-m' then we would honour it. But, if a
memory backend is used, then we don't set the prealloc attribute
of the backend.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
src/qemu/qemu_command.c