提交 2242503e 编写于 作者: P Peter Krempa

qemu: emulatorpin: Always set affinity when pinning emulator thread

Similarly to VM startup always set the legacy affinity. Additionally we
don't need to report an explicit error since virProcessSetAffinity
reports them themselves.
上级 e6ad2b69
......@@ -5276,15 +5276,11 @@ qemuDomainPinEmulator(virDomainPtr dom,
" for emulator threads"));
goto endjob;
}
} else {
if (virProcessSetAffinity(vm->pid, pcpumap) < 0) {
virReportError(VIR_ERR_SYSTEM_ERROR, "%s",
_("failed to set cpu affinity for "
"emulator thread"));
goto endjob;
}
}
if (virProcessSetAffinity(vm->pid, pcpumap) < 0)
goto endjob;
virBitmapFree(def->cputune.emulatorpin);
def->cputune.emulatorpin = NULL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册