提交 a605594f 编写于 作者: G Guido Günther

qemu: Don't fail without emulatorpin or cpumask

This unbreaks qemu:///session that got broken by
ba63d8f7.
上级 b7e92024
......@@ -2037,12 +2037,14 @@ qemuProcessSetEmulatorAffinites(virConnectPtr conn,
if (virNodeGetInfo(conn, &nodeinfo) != 0)
return -1;
if (def->cputune.emulatorpin)
if (def->cputune.emulatorpin) {
cpumask = def->cputune.emulatorpin->cpumask;
else if (def->cpumask)
} else if (def->cpumask) {
cpumask = def->cpumask;
else
} else {
ret = 0;
goto cleanup;
}
ret = virProcessInfoSetAffinity(vm->pid, cpumask);
cleanup:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册