|
|
|
@ -1680,7 +1680,7 @@ static int qemuDomainSuspend(virDomainPtr dom)
|
|
|
|
|
if (virDomainSuspendEnsureACL(dom->conn, vm->def) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (qemuDomainObjBeginJob(vm, VIR_JOB_SUSPEND) < 0)
|
|
|
|
|
if (virDomainObjBeginJob(vm, VIR_JOB_SUSPEND) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (virDomainObjCheckActive(vm) < 0)
|
|
|
|
@ -1730,7 +1730,7 @@ static int qemuDomainResume(virDomainPtr dom)
|
|
|
|
|
if (virDomainResumeEnsureACL(dom->conn, vm->def) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (qemuDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
if (virDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (virDomainObjCheckActive(vm) < 0)
|
|
|
|
@ -1813,7 +1813,7 @@ qemuDomainShutdownFlagsMonitor(virDomainObj *vm,
|
|
|
|
|
|
|
|
|
|
priv = vm->privateData;
|
|
|
|
|
|
|
|
|
|
if (qemuDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
if (virDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
return -1;
|
|
|
|
|
|
|
|
|
|
if (virDomainObjGetState(vm, NULL) != VIR_DOMAIN_RUNNING) {
|
|
|
|
@ -1936,7 +1936,7 @@ qemuDomainRebootMonitor(virDomainObj *vm,
|
|
|
|
|
qemuDomainObjPrivate *priv = vm->privateData;
|
|
|
|
|
int ret = -1;
|
|
|
|
|
|
|
|
|
|
if (qemuDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
if (virDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
return -1;
|
|
|
|
|
|
|
|
|
|
if (virDomainObjCheckActive(vm) < 0)
|
|
|
|
@ -2023,7 +2023,7 @@ qemuDomainReset(virDomainPtr dom, unsigned int flags)
|
|
|
|
|
if (virDomainResetEnsureACL(dom->conn, vm->def) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (qemuDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
if (virDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (virDomainObjCheckActive(vm) < 0)
|
|
|
|
@ -2192,7 +2192,7 @@ static int qemuDomainSetMemoryFlags(virDomainPtr dom, unsigned long newmem,
|
|
|
|
|
if (virDomainSetMemoryFlagsEnsureACL(dom->conn, vm->def, flags) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (qemuDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
if (virDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (virDomainObjGetDefs(vm, flags, &def, &persistentDef) < 0)
|
|
|
|
@ -2335,7 +2335,7 @@ static int qemuDomainSetMemoryStatsPeriod(virDomainPtr dom, int period,
|
|
|
|
|
if (virDomainSetMemoryStatsPeriodEnsureACL(dom->conn, vm->def, flags) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (qemuDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
if (virDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (virDomainObjGetDefs(vm, flags, &def, &persistentDef) < 0)
|
|
|
|
@ -2402,7 +2402,7 @@ static int qemuDomainInjectNMI(virDomainPtr domain, unsigned int flags)
|
|
|
|
|
|
|
|
|
|
priv = vm->privateData;
|
|
|
|
|
|
|
|
|
|
if (qemuDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
if (virDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (virDomainObjCheckActive(vm) < 0)
|
|
|
|
@ -2460,7 +2460,7 @@ static int qemuDomainSendKey(virDomainPtr domain,
|
|
|
|
|
if (virDomainSendKeyEnsureACL(domain->conn, vm->def) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (qemuDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
if (virDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (virDomainObjCheckActive(vm) < 0)
|
|
|
|
@ -3323,7 +3323,7 @@ qemuDomainScreenshot(virDomainPtr dom,
|
|
|
|
|
if (virDomainScreenshotEnsureACL(dom->conn, vm->def) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (qemuDomainObjBeginJob(vm, VIR_JOB_QUERY) < 0)
|
|
|
|
|
if (virDomainObjBeginJob(vm, VIR_JOB_QUERY) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (virDomainObjCheckActive(vm) < 0)
|
|
|
|
@ -3603,7 +3603,7 @@ processDeviceDeletedEvent(virQEMUDriver *driver,
|
|
|
|
|
VIR_DEBUG("Removing device %s from domain %p %s",
|
|
|
|
|
devAlias, vm, vm->def->name);
|
|
|
|
|
|
|
|
|
|
if (qemuDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
if (virDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
if (!virDomainObjIsActive(vm)) {
|
|
|
|
@ -3839,7 +3839,7 @@ processNicRxFilterChangedEvent(virDomainObj *vm,
|
|
|
|
|
"from domain %p %s",
|
|
|
|
|
devAlias, vm, vm->def->name);
|
|
|
|
|
|
|
|
|
|
if (qemuDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
if (virDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (!virDomainObjIsActive(vm)) {
|
|
|
|
@ -3965,7 +3965,7 @@ processSerialChangedEvent(virQEMUDriver *driver,
|
|
|
|
|
memset(&dev, 0, sizeof(dev));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (qemuDomainObjBeginJob(vm, VIR_JOB_MODIFY_MIGRATION_SAFE) < 0)
|
|
|
|
|
if (virDomainObjBeginJob(vm, VIR_JOB_MODIFY_MIGRATION_SAFE) < 0)
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
if (!virDomainObjIsActive(vm)) {
|
|
|
|
@ -4011,7 +4011,7 @@ static void
|
|
|
|
|
processJobStatusChangeEvent(virDomainObj *vm,
|
|
|
|
|
qemuBlockJobData *job)
|
|
|
|
|
{
|
|
|
|
|
if (qemuDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
if (virDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
if (!virDomainObjIsActive(vm)) {
|
|
|
|
@ -4153,7 +4153,7 @@ processMemoryDeviceSizeChange(virQEMUDriver *driver,
|
|
|
|
|
virObjectEvent *event = NULL;
|
|
|
|
|
unsigned long long balloon;
|
|
|
|
|
|
|
|
|
|
if (qemuDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
if (virDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
if (!virDomainObjIsActive(vm)) {
|
|
|
|
@ -4371,7 +4371,7 @@ qemuDomainSetVcpusFlags(virDomainPtr dom,
|
|
|
|
|
if (qemuDomainObjBeginAgentJob(vm, VIR_AGENT_JOB_MODIFY) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
} else {
|
|
|
|
|
if (qemuDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
if (virDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -4508,7 +4508,7 @@ qemuDomainPinVcpuFlags(virDomainPtr dom,
|
|
|
|
|
if (virDomainPinVcpuFlagsEnsureACL(dom->conn, vm->def, flags) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (qemuDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
if (virDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (virDomainObjGetDefs(vm, flags, &def, &persistentDef) < 0)
|
|
|
|
@ -4634,7 +4634,7 @@ qemuDomainPinEmulator(virDomainPtr dom,
|
|
|
|
|
if (virDomainPinEmulatorEnsureACL(dom->conn, vm->def, flags) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (qemuDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
if (virDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (virDomainObjGetDefs(vm, flags, &def, &persistentDef) < 0)
|
|
|
|
@ -4892,7 +4892,7 @@ qemuDomainGetIOThreadsLive(virDomainObj *vm,
|
|
|
|
|
size_t i;
|
|
|
|
|
int ret = -1;
|
|
|
|
|
|
|
|
|
|
if (qemuDomainObjBeginJob(vm, VIR_JOB_QUERY) < 0)
|
|
|
|
|
if (virDomainObjBeginJob(vm, VIR_JOB_QUERY) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (!virDomainObjIsActive(vm)) {
|
|
|
|
@ -5020,7 +5020,7 @@ qemuDomainPinIOThread(virDomainPtr dom,
|
|
|
|
|
if (virDomainPinIOThreadEnsureACL(dom->conn, vm->def, flags) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (qemuDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
if (virDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (virDomainObjGetDefs(vm, flags, &def, &persistentDef) < 0)
|
|
|
|
@ -5528,7 +5528,7 @@ qemuDomainChgIOThread(virQEMUDriver *driver,
|
|
|
|
|
|
|
|
|
|
priv = vm->privateData;
|
|
|
|
|
|
|
|
|
|
if (qemuDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
if (virDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
return -1;
|
|
|
|
|
|
|
|
|
|
if (virDomainObjGetDefs(vm, flags, &def, &persistentDef) < 0)
|
|
|
|
@ -6737,7 +6737,7 @@ qemuDomainUndefineFlags(virDomainPtr dom,
|
|
|
|
|
if (virDomainUndefineFlagsEnsureACL(dom->conn, vm->def) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (qemuDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
if (virDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (!vm->persistent) {
|
|
|
|
@ -7994,7 +7994,7 @@ qemuDomainAttachDeviceFlags(virDomainPtr dom,
|
|
|
|
|
if (virDomainAttachDeviceFlagsEnsureACL(dom->conn, vm->def, flags) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (qemuDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
if (virDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (virDomainObjUpdateModificationImpact(vm, &flags) < 0)
|
|
|
|
@ -8049,7 +8049,7 @@ static int qemuDomainUpdateDeviceFlags(virDomainPtr dom,
|
|
|
|
|
if (virDomainUpdateDeviceFlagsEnsureACL(dom->conn, vm->def, flags) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (qemuDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
if (virDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (virDomainObjUpdateModificationImpact(vm, &flags) < 0)
|
|
|
|
@ -8279,7 +8279,7 @@ qemuDomainDetachDeviceFlags(virDomainPtr dom,
|
|
|
|
|
if (virDomainDetachDeviceFlagsEnsureACL(dom->conn, vm->def, flags) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (qemuDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
if (virDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (virDomainObjUpdateModificationImpact(vm, &flags) < 0)
|
|
|
|
@ -8314,7 +8314,7 @@ qemuDomainDetachDeviceAlias(virDomainPtr dom,
|
|
|
|
|
if (virDomainDetachDeviceAliasEnsureACL(dom->conn, vm->def, flags) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (qemuDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
if (virDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (virDomainObjUpdateModificationImpact(vm, &flags) < 0)
|
|
|
|
@ -8387,7 +8387,7 @@ static int qemuDomainSetAutostart(virDomainPtr dom,
|
|
|
|
|
autostart = (autostart != 0);
|
|
|
|
|
|
|
|
|
|
if (vm->autostart != autostart) {
|
|
|
|
|
if (qemuDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
if (virDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (!(configFile = virDomainConfigFile(cfg->configDir, vm->def->name)))
|
|
|
|
@ -8533,7 +8533,7 @@ qemuDomainSetBlkioParameters(virDomainPtr dom,
|
|
|
|
|
goto cleanup;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (qemuDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
if (virDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (virDomainObjGetDefs(vm, flags, &def, &persistentDef) < 0)
|
|
|
|
@ -8707,7 +8707,7 @@ qemuDomainSetMemoryParameters(virDomainPtr dom,
|
|
|
|
|
goto cleanup;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (qemuDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
if (virDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
/* QEMU and LXC implementation are identical */
|
|
|
|
@ -8950,7 +8950,7 @@ qemuDomainSetNumaParameters(virDomainPtr dom,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (qemuDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
if (virDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (virDomainObjGetDefs(vm, flags, &def, &persistentDef) < 0)
|
|
|
|
@ -9167,7 +9167,7 @@ qemuDomainSetPerfEvents(virDomainPtr dom,
|
|
|
|
|
if (virDomainSetPerfEventsEnsureACL(dom->conn, vm->def) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (qemuDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
if (virDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (virDomainObjGetDefs(vm, flags, &def, &persistentDef) < 0)
|
|
|
|
@ -9241,7 +9241,7 @@ qemuDomainGetPerfEvents(virDomainPtr dom,
|
|
|
|
|
if (virDomainGetPerfEventsEnsureACL(dom->conn, vm->def) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (qemuDomainObjBeginJob(vm, VIR_JOB_QUERY) < 0)
|
|
|
|
|
if (virDomainObjBeginJob(vm, VIR_JOB_QUERY) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (!(def = virDomainObjGetOneDefState(vm, flags, &live)))
|
|
|
|
@ -9418,7 +9418,7 @@ qemuDomainSetSchedulerParametersFlags(virDomainPtr dom,
|
|
|
|
|
goto cleanup;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (qemuDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
if (virDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (virDomainObjGetDefs(vm, flags, &def, &persistentDef) < 0)
|
|
|
|
@ -9920,7 +9920,7 @@ qemuDomainBlockResize(virDomainPtr dom,
|
|
|
|
|
if (virDomainBlockResizeEnsureACL(dom->conn, vm->def) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (qemuDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
if (virDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (virDomainObjCheckActive(vm) < 0)
|
|
|
|
@ -10120,7 +10120,7 @@ qemuDomainBlockStats(virDomainPtr dom,
|
|
|
|
|
if (virDomainBlockStatsEnsureACL(dom->conn, vm->def) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (qemuDomainObjBeginJob(vm, VIR_JOB_QUERY) < 0)
|
|
|
|
|
if (virDomainObjBeginJob(vm, VIR_JOB_QUERY) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (virDomainObjCheckActive(vm) < 0)
|
|
|
|
@ -10177,7 +10177,7 @@ qemuDomainBlockStatsFlags(virDomainPtr dom,
|
|
|
|
|
if (virDomainBlockStatsFlagsEnsureACL(dom->conn, vm->def) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (qemuDomainObjBeginJob(vm, VIR_JOB_QUERY) < 0)
|
|
|
|
|
if (virDomainObjBeginJob(vm, VIR_JOB_QUERY) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (virDomainObjCheckActive(vm) < 0)
|
|
|
|
@ -10339,7 +10339,7 @@ qemuDomainSetInterfaceParameters(virDomainPtr dom,
|
|
|
|
|
if (virDomainSetInterfaceParametersEnsureACL(dom->conn, vm->def, flags) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (qemuDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
if (virDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (virDomainObjGetDefs(vm, flags, &def, &persistentDef) < 0)
|
|
|
|
@ -10702,7 +10702,7 @@ qemuDomainMemoryStats(virDomainPtr dom,
|
|
|
|
|
if (virDomainMemoryStatsEnsureACL(dom->conn, vm->def) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (qemuDomainObjBeginJob(vm, VIR_JOB_QUERY) < 0)
|
|
|
|
|
if (virDomainObjBeginJob(vm, VIR_JOB_QUERY) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
ret = qemuDomainMemoryStatsInternal(vm, stats, nr_stats);
|
|
|
|
@ -10812,7 +10812,7 @@ qemuDomainMemoryPeek(virDomainPtr dom,
|
|
|
|
|
goto cleanup;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (qemuDomainObjBeginJob(vm, VIR_JOB_QUERY) < 0)
|
|
|
|
|
if (virDomainObjBeginJob(vm, VIR_JOB_QUERY) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (virDomainObjCheckActive(vm) < 0)
|
|
|
|
@ -11089,7 +11089,7 @@ qemuDomainGetBlockInfo(virDomainPtr dom,
|
|
|
|
|
if (virDomainGetBlockInfoEnsureACL(dom->conn, vm->def) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (qemuDomainObjBeginJob(vm, VIR_JOB_QUERY) < 0)
|
|
|
|
|
if (virDomainObjBeginJob(vm, VIR_JOB_QUERY) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (!(disk = virDomainDiskByName(vm->def, path, false))) {
|
|
|
|
@ -12679,7 +12679,7 @@ qemuDomainGetJobStatsInternal(virDomainObj *vm,
|
|
|
|
|
return -1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (qemuDomainObjBeginJob(vm, VIR_JOB_QUERY) < 0)
|
|
|
|
|
if (virDomainObjBeginJob(vm, VIR_JOB_QUERY) < 0)
|
|
|
|
|
return -1;
|
|
|
|
|
|
|
|
|
|
if (virDomainObjCheckActive(vm) < 0)
|
|
|
|
@ -12851,7 +12851,7 @@ qemuDomainAbortJobFlags(virDomainPtr dom,
|
|
|
|
|
if (virDomainAbortJobFlagsEnsureACL(dom->conn, vm->def) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (qemuDomainObjBeginJob(vm, VIR_JOB_ABORT) < 0)
|
|
|
|
|
if (virDomainObjBeginJob(vm, VIR_JOB_ABORT) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (virDomainObjCheckActive(vm) < 0)
|
|
|
|
@ -12954,7 +12954,7 @@ qemuDomainMigrateSetMaxDowntime(virDomainPtr dom,
|
|
|
|
|
if (virDomainMigrateSetMaxDowntimeEnsureACL(dom->conn, vm->def) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (qemuDomainObjBeginJob(vm, VIR_JOB_MIGRATION_OP) < 0)
|
|
|
|
|
if (virDomainObjBeginJob(vm, VIR_JOB_MIGRATION_OP) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (virDomainObjCheckActive(vm) < 0)
|
|
|
|
@ -13003,7 +13003,7 @@ qemuDomainMigrateGetMaxDowntime(virDomainPtr dom,
|
|
|
|
|
if (virDomainMigrateGetMaxDowntimeEnsureACL(dom->conn, vm->def) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (qemuDomainObjBeginJob(vm, VIR_JOB_QUERY) < 0)
|
|
|
|
|
if (virDomainObjBeginJob(vm, VIR_JOB_QUERY) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (virDomainObjCheckActive(vm) < 0)
|
|
|
|
@ -13053,7 +13053,7 @@ qemuDomainMigrateGetCompressionCache(virDomainPtr dom,
|
|
|
|
|
if (virDomainMigrateGetCompressionCacheEnsureACL(dom->conn, vm->def) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (qemuDomainObjBeginJob(vm, VIR_JOB_QUERY) < 0)
|
|
|
|
|
if (virDomainObjBeginJob(vm, VIR_JOB_QUERY) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (virDomainObjCheckActive(vm) < 0)
|
|
|
|
@ -13102,7 +13102,7 @@ qemuDomainMigrateSetCompressionCache(virDomainPtr dom,
|
|
|
|
|
if (virDomainMigrateSetCompressionCacheEnsureACL(dom->conn, vm->def) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (qemuDomainObjBeginJob(vm, VIR_JOB_MIGRATION_OP) < 0)
|
|
|
|
|
if (virDomainObjBeginJob(vm, VIR_JOB_MIGRATION_OP) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (virDomainObjCheckActive(vm) < 0)
|
|
|
|
@ -13178,7 +13178,7 @@ qemuDomainMigrateSetMaxSpeed(virDomainPtr dom,
|
|
|
|
|
goto cleanup;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (qemuDomainObjBeginJob(vm, VIR_JOB_MIGRATION_OP) < 0)
|
|
|
|
|
if (virDomainObjBeginJob(vm, VIR_JOB_MIGRATION_OP) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (virDomainObjCheckActive(vm) < 0)
|
|
|
|
@ -13226,7 +13226,7 @@ qemuDomainMigrationGetPostcopyBandwidth(virDomainObj *vm,
|
|
|
|
|
int rc;
|
|
|
|
|
int ret = -1;
|
|
|
|
|
|
|
|
|
|
if (qemuDomainObjBeginJob(vm, VIR_JOB_QUERY) < 0)
|
|
|
|
|
if (virDomainObjBeginJob(vm, VIR_JOB_QUERY) < 0)
|
|
|
|
|
return -1;
|
|
|
|
|
|
|
|
|
|
if (virDomainObjCheckActive(vm) < 0)
|
|
|
|
@ -13318,7 +13318,7 @@ qemuDomainMigrateStartPostCopy(virDomainPtr dom,
|
|
|
|
|
if (virDomainMigrateStartPostCopyEnsureACL(dom->conn, vm->def) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (qemuDomainObjBeginJob(vm, VIR_JOB_MIGRATION_OP) < 0)
|
|
|
|
|
if (virDomainObjBeginJob(vm, VIR_JOB_MIGRATION_OP) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (virDomainObjCheckActive(vm) < 0)
|
|
|
|
@ -14063,7 +14063,7 @@ qemuDomainQemuMonitorCommandWithFiles(virDomainPtr domain,
|
|
|
|
|
if (virDomainQemuMonitorCommandWithFilesEnsureACL(domain->conn, vm->def) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (qemuDomainObjBeginJob(vm, VIR_JOB_QUERY) < 0)
|
|
|
|
|
if (virDomainObjBeginJob(vm, VIR_JOB_QUERY) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (virDomainObjCheckActive(vm) < 0)
|
|
|
|
@ -14394,7 +14394,7 @@ qemuDomainBlockPullCommon(virDomainObj *vm,
|
|
|
|
|
goto cleanup;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (qemuDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
if (virDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (virDomainObjCheckActive(vm) < 0)
|
|
|
|
@ -14502,7 +14502,7 @@ qemuDomainBlockJobAbort(virDomainPtr dom,
|
|
|
|
|
if (virDomainBlockJobAbortEnsureACL(dom->conn, vm->def) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (qemuDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
if (virDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (virDomainObjCheckActive(vm) < 0)
|
|
|
|
@ -14663,7 +14663,7 @@ qemuDomainGetBlockJobInfo(virDomainPtr dom,
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (qemuDomainObjBeginJob(vm, VIR_JOB_QUERY) < 0)
|
|
|
|
|
if (virDomainObjBeginJob(vm, VIR_JOB_QUERY) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (virDomainObjCheckActive(vm) < 0)
|
|
|
|
@ -14732,7 +14732,7 @@ qemuDomainBlockJobSetSpeed(virDomainPtr dom,
|
|
|
|
|
if (virDomainBlockJobSetSpeedEnsureACL(dom->conn, vm->def) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (qemuDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
if (virDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (virDomainObjCheckActive(vm) < 0)
|
|
|
|
@ -14924,7 +14924,7 @@ qemuDomainBlockCopyCommon(virDomainObj *vm,
|
|
|
|
|
return -1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (qemuDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
if (virDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
return -1;
|
|
|
|
|
|
|
|
|
|
if (virDomainObjCheckActive(vm) < 0)
|
|
|
|
@ -15388,7 +15388,7 @@ qemuDomainBlockCommit(virDomainPtr dom,
|
|
|
|
|
if (virDomainBlockCommitEnsureACL(dom->conn, vm->def) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (qemuDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
if (virDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (virDomainObjCheckActive(vm) < 0)
|
|
|
|
@ -15588,7 +15588,7 @@ qemuDomainOpenGraphics(virDomainPtr dom,
|
|
|
|
|
if (virDomainOpenGraphicsEnsureACL(dom->conn, vm->def) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (qemuDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
if (virDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (virDomainObjCheckActive(vm) < 0)
|
|
|
|
@ -15706,7 +15706,7 @@ qemuDomainOpenGraphicsFD(virDomainPtr dom,
|
|
|
|
|
if (qemuSecurityClearSocketLabel(driver->securityManager, vm->def) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (qemuDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
if (virDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
qemuDomainObjEnterMonitor(vm);
|
|
|
|
|
ret = qemuMonitorOpenGraphics(priv->mon, protocol, pair[1], "graphicsfd",
|
|
|
|
@ -15961,7 +15961,7 @@ qemuDomainSetBlockIoTune(virDomainPtr dom,
|
|
|
|
|
|
|
|
|
|
cfg = virQEMUDriverGetConfig(driver);
|
|
|
|
|
|
|
|
|
|
if (qemuDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
if (virDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
priv = vm->privateData;
|
|
|
|
@ -16239,7 +16239,7 @@ qemuDomainGetBlockIoTune(virDomainPtr dom,
|
|
|
|
|
if (virDomainGetBlockIoTuneEnsureACL(dom->conn, vm->def) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (qemuDomainObjBeginJob(vm, VIR_JOB_QUERY) < 0)
|
|
|
|
|
if (virDomainObjBeginJob(vm, VIR_JOB_QUERY) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
/* the API check guarantees that only one of the definitions will be set */
|
|
|
|
@ -16379,7 +16379,7 @@ qemuDomainGetDiskErrors(virDomainPtr dom,
|
|
|
|
|
if (virDomainGetDiskErrorsEnsureACL(dom->conn, vm->def) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (qemuDomainObjBeginJob(vm, VIR_JOB_QUERY) < 0)
|
|
|
|
|
if (virDomainObjBeginJob(vm, VIR_JOB_QUERY) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (virDomainObjCheckActive(vm) < 0)
|
|
|
|
@ -16454,7 +16454,7 @@ qemuDomainSetMetadata(virDomainPtr dom,
|
|
|
|
|
if (virDomainSetMetadataEnsureACL(dom->conn, vm->def, flags) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (qemuDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
if (virDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
ret = virDomainObjSetMetadata(vm, type, metadata, key, uri,
|
|
|
|
@ -16575,7 +16575,7 @@ qemuDomainQueryWakeupSuspendSupport(virDomainObj *vm,
|
|
|
|
|
if (!virQEMUCapsGet(priv->qemuCaps, QEMU_CAPS_QUERY_CURRENT_MACHINE))
|
|
|
|
|
return -1;
|
|
|
|
|
|
|
|
|
|
if (qemuDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
if (virDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
return -1;
|
|
|
|
|
|
|
|
|
|
if ((ret = virDomainObjCheckActive(vm)) < 0)
|
|
|
|
@ -16706,7 +16706,7 @@ qemuDomainPMWakeup(virDomainPtr dom,
|
|
|
|
|
if (virDomainPMWakeupEnsureACL(dom->conn, vm->def) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (qemuDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
if (virDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (virDomainObjCheckActive(vm) < 0)
|
|
|
|
@ -17057,7 +17057,7 @@ qemuDomainGetHostnameLease(virDomainObj *vm,
|
|
|
|
|
size_t i, j;
|
|
|
|
|
int ret = -1;
|
|
|
|
|
|
|
|
|
|
if (qemuDomainObjBeginJob(vm, VIR_JOB_QUERY) < 0)
|
|
|
|
|
if (virDomainObjBeginJob(vm, VIR_JOB_QUERY) < 0)
|
|
|
|
|
return -1;
|
|
|
|
|
|
|
|
|
|
if (virDomainObjCheckActive(vm) < 0)
|
|
|
|
@ -17259,7 +17259,7 @@ qemuDomainSetTime(virDomainPtr dom,
|
|
|
|
|
if (qemuDomainSetTimeAgent(vm, seconds, nseconds, rtcSync) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (qemuDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
if (virDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (virDomainObjCheckActive(vm) < 0)
|
|
|
|
@ -18836,7 +18836,7 @@ qemuConnectGetAllDomainStats(virConnectPtr conn,
|
|
|
|
|
if (flags & VIR_CONNECT_GET_ALL_DOMAINS_STATS_NOWAIT)
|
|
|
|
|
rv = qemuDomainObjBeginJobNowait(vm, VIR_JOB_QUERY);
|
|
|
|
|
else
|
|
|
|
|
rv = qemuDomainObjBeginJob(vm, VIR_JOB_QUERY);
|
|
|
|
|
rv = virDomainObjBeginJob(vm, VIR_JOB_QUERY);
|
|
|
|
|
|
|
|
|
|
if (rv == 0)
|
|
|
|
|
domflags |= QEMU_DOMAIN_STATS_HAVE_JOB;
|
|
|
|
@ -19015,7 +19015,7 @@ qemuDomainGetFSInfo(virDomainPtr dom,
|
|
|
|
|
if ((nfs = qemuDomainGetFSInfoAgent(vm, &agentinfo)) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (qemuDomainObjBeginJob(vm, VIR_JOB_QUERY) < 0)
|
|
|
|
|
if (virDomainObjBeginJob(vm, VIR_JOB_QUERY) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (virDomainObjCheckActive(vm) < 0)
|
|
|
|
@ -19303,7 +19303,7 @@ static int qemuDomainRename(virDomainPtr dom,
|
|
|
|
|
if (virDomainRenameEnsureACL(dom->conn, vm->def) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (qemuDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
if (virDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (virDomainObjIsActive(vm)) {
|
|
|
|
@ -19569,7 +19569,7 @@ qemuDomainSetVcpu(virDomainPtr dom,
|
|
|
|
|
if (virDomainSetVcpuEnsureACL(dom->conn, vm->def, flags) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (qemuDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
if (virDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (virDomainObjGetDefs(vm, flags, &def, &persistentDef) < 0)
|
|
|
|
@ -19627,7 +19627,7 @@ qemuDomainSetBlockThreshold(virDomainPtr dom,
|
|
|
|
|
if (virDomainSetBlockThresholdEnsureACL(dom->conn, vm->def) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (qemuDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
if (virDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (virDomainObjCheckActive(vm) < 0)
|
|
|
|
@ -19799,7 +19799,7 @@ qemuDomainSetLifecycleAction(virDomainPtr dom,
|
|
|
|
|
if (virDomainSetLifecycleActionEnsureACL(dom->conn, vm->def) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (qemuDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
if (virDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (virDomainObjGetDefs(vm, flags, &def, &persistentDef) < 0)
|
|
|
|
@ -19951,7 +19951,7 @@ qemuDomainGetSEVInfo(virDomainObj *vm,
|
|
|
|
|
|
|
|
|
|
virCheckFlags(VIR_TYPED_PARAM_STRING_OKAY, -1);
|
|
|
|
|
|
|
|
|
|
if (qemuDomainObjBeginJob(vm, VIR_JOB_QUERY) < 0)
|
|
|
|
|
if (virDomainObjBeginJob(vm, VIR_JOB_QUERY) < 0)
|
|
|
|
|
return -1;
|
|
|
|
|
|
|
|
|
|
if (virDomainObjCheckActive(vm) < 0) {
|
|
|
|
@ -20094,7 +20094,7 @@ qemuDomainSetLaunchSecurityState(virDomainPtr domain,
|
|
|
|
|
else if (rc == 1)
|
|
|
|
|
hasSetaddr = true;
|
|
|
|
|
|
|
|
|
|
if (qemuDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
if (virDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (virDomainObjCheckActive(vm) < 0)
|
|
|
|
@ -20499,7 +20499,7 @@ qemuDomainGetGuestInfo(virDomainPtr dom,
|
|
|
|
|
qemuDomainObjEndAgentJob(vm);
|
|
|
|
|
|
|
|
|
|
if (nfs > 0 || ndisks > 0) {
|
|
|
|
|
if (qemuDomainObjBeginJob(vm, VIR_JOB_QUERY) < 0)
|
|
|
|
|
if (virDomainObjBeginJob(vm, VIR_JOB_QUERY) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (virDomainObjCheckActive(vm) < 0)
|
|
|
|
@ -20762,7 +20762,7 @@ qemuDomainStartDirtyRateCalc(virDomainPtr dom,
|
|
|
|
|
goto cleanup;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (qemuDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
if (virDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0)
|
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
|
|
if (virDomainObjCheckActive(vm) < 0) {
|
|
|
|
|