mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-08 22:15:21 +00:00
qemu: iothreadpin: Always set affinity when pinning iothread
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
2242503efb
commit
29eeb81437
@ -5765,15 +5765,11 @@ qemuDomainPinIOThread(virDomainPtr dom,
|
||||
" for iothread %d"), iothread_id);
|
||||
goto endjob;
|
||||
}
|
||||
} else {
|
||||
if (virProcessSetAffinity(iothrid->thread_id, pcpumap) < 0) {
|
||||
virReportError(VIR_ERR_SYSTEM_ERROR,
|
||||
_("failed to set cpu affinity for IOThread %d"),
|
||||
iothread_id);
|
||||
goto endjob;
|
||||
}
|
||||
}
|
||||
|
||||
if (virProcessSetAffinity(iothrid->thread_id, pcpumap) < 0)
|
||||
goto endjob;
|
||||
|
||||
if (virDomainSaveStatus(driver->xmlopt, cfg->stateDir, vm, driver->caps) < 0)
|
||||
goto endjob;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user