]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: Introduce memory allocation threads
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 21 Mar 2022 15:49:25 +0000 (16:49 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 24 Mar 2022 14:45:41 +0000 (15:45 +0100)
commitba7f98126fa84d354ce72929b77cc111a9a557a9
tree615077c6684fd14a8cd5eaf88265f118553e340d
parent42d7c3c4dae259ee72d8c834c6477597fccb4775
conf: Introduce memory allocation threads

Since its v5.0.0 release QEMU is capable of specifying number of
threads used to allocate memory. It defaults to 1, which may be
too low for humongous guests with gigantic pages.

In general, on QEMU cmd line level it is possible to use
different number of threads per each memory-backend-* object, in
practical terms it's not useful. Therefore, use <memoryBacking/>
to set guest wide value and let all memory devices 'inherit' it,
silently. IOW, don't introduce per device knob because that would
only complicate things for a little or no benefit.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
docs/formatdomain.rst
src/conf/domain_conf.c
src/conf/domain_conf.h
src/conf/schemas/domaincommon.rng
tests/qemuxml2argvdata/memfd-memory-numa.xml