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:
parent
e6ad2b69ae
commit
2242503efb
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user