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)
|
||||
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),
|
||||
|
|
Loading…
Reference in New Issue