]> xenbits.xensource.com Git - libvirt.git/commit
qemu: leave restricting cpuset.mems after initialization
authorMartin Kletzander <mkletzan@redhat.com>
Tue, 8 Jul 2014 07:59:49 +0000 (09:59 +0200)
committerMartin Kletzander <mkletzan@redhat.com>
Wed, 16 Jul 2014 18:15:46 +0000 (20:15 +0200)
commit7e72ac787848b7434c9359a57c1e2789d92350f8
tree5b63d9dd87d9da43811ff191cdacd6887668c9c4
parentaa668fccf078bf9833047776549a5a06435cf470
qemu: leave restricting cpuset.mems after initialization

When domain is started with numatune memory mode strict and the
nodeset does not include host NUMA node with DMA and DMA32 zones, KVM
initialization fails.  This is because cgroup restrict even kernel
allocations.  We are already doing numa_set_membind() which does the
same thing, only it does not restrict kernel allocations.

This patch leaves the userspace numa_set_membind() in place and moves
the cpuset.mems setting after the point where monitor comes up, but
before vcpu and emulator sub-groups are created.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
src/qemu/qemu_cgroup.c
src/qemu/qemu_cgroup.h
src/qemu/qemu_process.c