]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: fix some api cannot work when disable cpuset in conf
authorLuyao Huang <lhuang@redhat.com>
Mon, 20 Jul 2015 09:18:37 +0000 (17:18 +0800)
committerCole Robinson <crobinso@redhat.com>
Mon, 21 Sep 2015 23:22:40 +0000 (19:22 -0400)
commite1d8f411f76b826a7822dc46e0dddabec8b797f6
treefc1c9d84a0a968f187b7384ab721495be9ce3dc9
parent93fd967f38d0e762c84016f1b2424baddda1949f
qemu: fix some api cannot work when disable cpuset in conf

If cpuset is disabled or not available, it libvirt must not use it.
Mainly for actions that do not need it and can use sched_setaffinity()
or numa_membind() instead, because they will fail without good reason.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1244664

Signed-off-by: Luyao Huang <lhuang@redhat.com>
(cherry picked from commit 1439eb32afc9f97378d1d121c0b5c80d2f84896c)
src/qemu/qemu_cgroup.c
src/qemu/qemu_driver.c