]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuBuildMemoryBackendProps: Prealloc mem for memfd backend
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 25 May 2020 12:35:51 +0000 (14:35 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 1 Oct 2020 10:03:06 +0000 (12:03 +0200)
commita658a4bdf721d37144841c212b0a0da15595f03f
treee971fe48cb3add1e7c4f2b8fb8725a842dc985ca
parent0217c5a6b4221f5488dad063d92db644d105e24d
qemuBuildMemoryBackendProps: Prealloc mem for memfd backend

If a domain was using hugepages through memory-backend-file or
via -mem-path, we would turn prealloc on. But we are not doing
that for memory-backend-memfd. Fix this, because we need QEMU to
fully allocate hugepages.

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