]> xenbits.xensource.com Git - libvirt.git/commit
qemuDomainSetNumaParamsLive: set nodeset for root cgroup
authorDaniel Henrique Barboza <danielhb413@gmail.com>
Thu, 11 Jun 2020 18:54:57 +0000 (15:54 -0300)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 16 Jun 2020 14:29:36 +0000 (16:29 +0200)
commit1b22dd6dd44202094e0f78f887cbe790c00e9ebc
tree11cf26ab2605338752905e3d1ad919ab5843fa80
parent87386ddcb6ee4d3b959c11c565f118ab9b8d223b
qemuDomainSetNumaParamsLive: set nodeset for root cgroup

This function handles the change of NUMA nodeset for a given
guest, setting CpusetMems for the emulator, vcpus and IOThread
sub-groups. It doesn't set the same  nodeset to the root cgroup
though. This means that cpuset.mems of the root cgroup ends up
holding the new nodeset and the old nodeset as well. For
a guest with placement=strict, nodeset='0', doing

virsh numatune <vm> 0 8 --live

Will make cpuset.mems of emulator, vcpus and iothread to be
"8", but cpuset.mems of the root cgroup will be "0,8".

This means that any new tasks that ends up landing in the
root cgroup, aside from the emulator/vcpus/iothread sub-groups,
will be split between the old nodeset and the new nodeset,
which is not what we want.

Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_driver.c