[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH 2/2] cpuset: removing original sched_setaffinity path



Since we have controlled Guest cpu affinity by using cpuset cgroup.
Get rid of this part.

Signed-off-by: Gui Jianfeng <guijianfeng cn fujitsu com>
---
 src/qemu/qemu_process.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)

diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c
index 88a31a3..079666f 100644
--- a/src/qemu/qemu_process.c
+++ b/src/qemu/qemu_process.c
@@ -2056,12 +2056,6 @@ static int qemuProcessHook(void *data)
     if (qemuAddToCgroup(h->driver, h->vm->def) < 0)
         goto cleanup;
 
-    /* This must be done after cgroup placement to avoid resetting CPU
-     * affinity */
-    VIR_DEBUG("Setup CPU affinity");
-    if (qemuProcessInitCpuAffinity(h->vm) < 0)
-        goto cleanup;
-
     if (qemuProcessInitNumaMemoryPolicy(h->vm) < 0)
         return -1;
 
-- 
1.7.1


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]