]> xenbits.xensource.com Git - libvirt.git/commit
qemu: fix internal error: NUMA isn't available on this host
authorBoris Fiuczynski <fiuczy@linux.vnet.ibm.com>
Thu, 24 Nov 2016 12:28:00 +0000 (13:28 +0100)
committerMartin Kletzander <mkletzan@redhat.com>
Fri, 25 Nov 2016 08:48:41 +0000 (09:48 +0100)
commitb178fa8ecb70e0ecbc4cc2e142515a34d90ee059
treeb724eac2c47e1db100b37e3d31c3eea5a1b9f7e0
parentae5d30a0b30677d528315e2935c776afdbfc3a5d
qemu: fix internal error: NUMA isn't available on this host

If libvirt is compiled without NUMACTL support starting libvirtd
reports a libvirt internal error "NUMA isn't available on this host"
without checking if NUMA support is compiled into the libvirt binaries.
This patch adds the missing NUMA support check to prevent the internal error.
It also includes a check if the cgroup controller cpuset is available before
using it.

The error was noticed when libvirtd was restarted with running domains and
on libvirtd start the qemuConnectCgroup gets called during qemuProcessReconnect.

Signed-off-by: Boris Fiuczynski <fiuczy@linux.vnet.ibm.com>
Reviewed-by: Bjoern Walk <bwalk@linux.vnet.ibm.com>
src/qemu/qemu_cgroup.c