]> xenbits.xensource.com Git - libvirt.git/commit
lib: Set up cpuset controller for restrictive numatune
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 1 Apr 2022 12:30:05 +0000 (14:30 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 7 Apr 2022 10:12:11 +0000 (12:12 +0200)
commit629282d8845407c1aff9a26f5dc026e15121f8cd
tree167c70899474842551c02c8b959e9a7180479900
parent5c6622eff771767d37631675fb8b81ba95f0cc14
lib: Set up cpuset controller for restrictive numatune

The aim of 'restrictive' numatune mode is to rely solely on
CGroups to have QEMU running on configured NUMA nodes.  However,
we were never setting the cpuset controller when a domain was
starting up. We are doing so only when
virDomainSetNumaParameters() is called (aka live pinning).

This is obviously wrong. Fortunately, fix is simple as
'restrictive' is similar to 'strict' - every location where
VIR_DOMAIN_NUMATUNE_MEM_STRICT occurs can be audited and
VIR_DOMAIN_NUMATUNE_MEM_RESTRICTIVE case can be added.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2070380
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/ch/ch_process.c
src/lxc/lxc_controller.c
src/qemu/qemu_process.c