提交 6e8266ad 编写于 作者: P Pavel Hrdina

qemu_process: move qemuDomainSetPrivatePaths to qemuProcessInit

Signed-off-by: NPavel Hrdina <phrdina@redhat.com>
上级 1e38ef72
......@@ -4542,6 +4542,14 @@ qemuProcessInit(virQEMUDriverPtr driver,
VIR_HOOK_SUBOP_BEGIN) < 0)
goto stop;
if (qemuDomainSetPrivatePaths(&priv->libDir,
&priv->channelTargetDir,
cfg->libDir,
cfg->channelTargetDir,
vm->def->name,
vm->def->id) < 0)
goto cleanup;
ret = 0;
cleanup:
......@@ -5148,14 +5156,6 @@ qemuProcessLaunch(virConnectPtr conn,
goto cleanup;
logfile = qemuDomainLogContextGetWriteFD(logCtxt);
if (qemuDomainSetPrivatePaths(&priv->libDir,
&priv->channelTargetDir,
cfg->libDir,
cfg->channelTargetDir,
vm->def->name,
vm->def->id) < 0)
goto cleanup;
VIR_DEBUG("Building emulator command line");
if (!(cmd = qemuBuildCommandLine(conn, driver,
qemuDomainLogContextGetManager(logCtxt),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册