mirror of https://gitee.com/openkylin/libvirt.git
qemu_process: move qemuDomainSetPrivatePaths to qemuProcessInit
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
parent
1e38ef728c
commit
6e8266ade5
|
@ -4542,6 +4542,14 @@ qemuProcessInit(virQEMUDriverPtr driver,
|
||||||
VIR_HOOK_SUBOP_BEGIN) < 0)
|
VIR_HOOK_SUBOP_BEGIN) < 0)
|
||||||
goto stop;
|
goto stop;
|
||||||
|
|
||||||
|
if (qemuDomainSetPrivatePaths(&priv->libDir,
|
||||||
|
&priv->channelTargetDir,
|
||||||
|
cfg->libDir,
|
||||||
|
cfg->channelTargetDir,
|
||||||
|
vm->def->name,
|
||||||
|
vm->def->id) < 0)
|
||||||
|
goto cleanup;
|
||||||
|
|
||||||
ret = 0;
|
ret = 0;
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
|
@ -5148,14 +5156,6 @@ qemuProcessLaunch(virConnectPtr conn,
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
logfile = qemuDomainLogContextGetWriteFD(logCtxt);
|
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");
|
VIR_DEBUG("Building emulator command line");
|
||||||
if (!(cmd = qemuBuildCommandLine(conn, driver,
|
if (!(cmd = qemuBuildCommandLine(conn, driver,
|
||||||
qemuDomainLogContextGetManager(logCtxt),
|
qemuDomainLogContextGetManager(logCtxt),
|
||||||
|
|
Loading…
Reference in New Issue