1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-03-20 07:59:00 +00:00

qemu: Fix iothreads issue

If there are no iothreads, then return from qemuProcessDetectIOThreadPIDs
without error; otherwise, the following occurs:

error: Failed to start domain $dom
error: An error occurred, but the cause is unknown
This commit is contained in:
John Ferlan 2014-09-15 19:57:22 -04:00
parent 7e8feed4a7
commit b66c950fb9

View File

@ -2110,9 +2110,13 @@ qemuProcessDetectIOThreadPIDs(virQEMUDriverPtr driver,
goto cleanup; goto cleanup;
niothreads = qemuMonitorGetIOThreads(priv->mon, &iothreads); niothreads = qemuMonitorGetIOThreads(priv->mon, &iothreads);
qemuDomainObjExitMonitor(driver, vm); qemuDomainObjExitMonitor(driver, vm);
if (niothreads <= 0) if (niothreads < 0)
goto cleanup; goto cleanup;
/* Nothing to do */
if (niothreads == 0)
return 0;
if (niothreads != vm->def->iothreads) { if (niothreads != vm->def->iothreads) {
virReportError(VIR_ERR_INTERNAL_ERROR, virReportError(VIR_ERR_INTERNAL_ERROR,
_("got wrong number of IOThread pids from QEMU monitor. " _("got wrong number of IOThread pids from QEMU monitor. "