]> git.ipfire.org Git - thirdparty/libvirt.git/commit
numa: Rename virNumaGetHostNodeset and make it return only nodes with memory
authorPeter Krempa <pkrempa@redhat.com>
Tue, 13 Sep 2016 13:55:06 +0000 (15:55 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 14 Sep 2016 06:41:41 +0000 (08:41 +0200)
commit77cb01bc0fec4d0da02e1d4df75d28870b0ef926
tree51c2c3cd6015dc779b2436bb49a37e365aa066fd
parent5555dc0d7fe0267e2ff6e5a9625164f2896f9cc5
numa: Rename virNumaGetHostNodeset and make it return only nodes with memory

Name it virNumaGetHostMemoryNodeset and return only NUMA nodes which
have memory installed. This is necessary as the kernel is not very happy
to set the memory cgroup setting for nodes which do not have any memory.

This would break vcpu hotplug with following message on such
configruation:

  Invalid value '0,8' for 'cpuset.mems': Invalid argument

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1375268
src/libvirt_private.syms
src/qemu/qemu_cgroup.c
src/util/virnuma.c
src/util/virnuma.h