1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-03-07 17:28:15 +00:00

qemu: emulatorpin: Always set affinity when pinning emulator thread

Similarly to VM startup always set the legacy affinity. Additionally we
don't need to report an explicit error since virProcessSetAffinity
reports them themselves.
This commit is contained in:
Peter Krempa 2016-02-19 16:04:15 +01:00
parent e6ad2b69ae
commit 2242503efb

View File

@ -5276,15 +5276,11 @@ qemuDomainPinEmulator(virDomainPtr dom,
" for emulator threads"));
goto endjob;
}
} else {
if (virProcessSetAffinity(vm->pid, pcpumap) < 0) {
virReportError(VIR_ERR_SYSTEM_ERROR, "%s",
_("failed to set cpu affinity for "
"emulator thread"));
goto endjob;
}
}
if (virProcessSetAffinity(vm->pid, pcpumap) < 0)
goto endjob;
virBitmapFree(def->cputune.emulatorpin);
def->cputune.emulatorpin = NULL;