]> git.ipfire.org Git - thirdparty/libvirt.git/commit
lxc: fix starting a domain with a cpuset but no numatune
authorLuyao Huang <lhuang@redhat.com>
Fri, 3 Apr 2015 10:11:15 +0000 (18:11 +0800)
committerJán Tomko <jtomko@redhat.com>
Mon, 20 Apr 2015 14:00:12 +0000 (16:00 +0200)
commit278995f9af0fd04b282870d4dfd24220ad3e716e
tree94c1aa454b3c9103769bbb0d333cfc5a64303a70
parent44fdfbb08191b559aa48b0ea05b123012b3eacc2
lxc: fix starting a domain with a cpuset but no numatune

 # virsh -c lxc:/// start helloworld
 error: Failed to start domain helloworld
 error: internal error: guest failed to start: Invalid value '1-3'
 for 'cpuset.mems': Invalid argument

Free the cpu mask to avoid reusing it as a mem mask
in virCgroupSetCpusetMems
if virDomainNumatuneMaybeFormatNodeset does not set a mask.

Signed-off-by: Luyao Huang <lhuang@redhat.com>
Signed-off-by: Ján Tomko <jtomko@redhat.com>
(cherry picked from commit 461eafecfade36555e44378c34568caf55c5cc8a)
src/lxc/lxc_cgroup.c