if (qemuDomainMasterKeyCreate(vm) < 0)
goto cleanup;
+ VIR_DEBUG("Add secrets to disks and hostdevs");
+ if (qemuDomainSecretPrepare(conn, vm) < 0)
+ goto cleanup;
+
if (VIR_ALLOC(priv->monConfig) < 0)
goto cleanup;
if (qemuProcessPrepareHost(driver, vm, !!incoming) < 0)
goto stop;
- if (qemuDomainSecretPrepare(conn, vm) < 0)
- goto cleanup;
-
if ((rv = qemuProcessLaunch(conn, driver, vm, asyncJob, incoming,
snapshot, vmop, flags)) < 0) {
if (rv == -2)
if (qemuProcessPrepareDomain(conn, driver, vm, flags) < 0)
goto cleanup;
- if (qemuDomainSecretPrepare(conn, vm) < 0)
- goto cleanup;
-
VIR_DEBUG("Building emulator command line");
cmd = qemuBuildCommandLine(driver,
NULL,