}
-int
-qemuDomainCheckMonitor(virDomainObj *vm,
- virDomainAsyncJob asyncJob)
-{
- qemuDomainObjPrivate *priv = vm->privateData;
- int ret;
-
- if (qemuDomainObjEnterMonitorAsync(vm, asyncJob) < 0)
- return -1;
-
- ret = qemuMonitorCheck(priv->mon);
-
- qemuDomainObjExitMonitor(vm);
-
- return ret;
-}
-
-
bool
qemuDomainSupportsVideoVga(const virDomainVideoDef *video,
virQEMUCaps *qemuCaps)
void qemuDomainVcpuPersistOrder(virDomainDef *def)
ATTRIBUTE_NONNULL(1);
-int qemuDomainCheckMonitor(virDomainObj *vm,
- virDomainAsyncJob asyncJob);
-
bool qemuDomainSupportsVideoVga(const virDomainVideoDef *video,
virQEMUCaps *qemuCaps);
goto error;
if (retcode != 0) {
- /* Check for a possible error on the monitor in case Finish was called
- * earlier than monitor EOF handler got a chance to process the error
+ /* Checking the migration status will read the migration error if
+ * set and QEMU is still alive. If the process died and EOF handler
+ * was not run yet, the appropriate monitor error will be set.
*/
- qemuDomainCheckMonitor(vm, VIR_ASYNC_JOB_MIGRATION_IN);
+ qemuMigrationJobCheckStatus(vm, VIR_ASYNC_JOB_MIGRATION_IN);
goto error;
}
}
-int
-qemuMonitorCheck(qemuMonitor *mon)
-{
- bool running;
- return qemuMonitorGetStatus(mon, &running, NULL);
-}
-
-
int
qemuMonitorGetStatus(qemuMonitor *mon,
bool *running,
VIR_ENUM_DECL(qemuMonitorVMStatus);
int qemuMonitorVMStatusToPausedReason(const char *status);
-int qemuMonitorCheck(qemuMonitor *mon);
int qemuMonitorGetStatus(qemuMonitor *mon,
bool *running,
virDomainPausedReason *reason)