From: Peter Krempa Date: Fri, 19 Feb 2016 15:04:15 +0000 (+0100) Subject: qemu: iothreadpin: Always set affinity when pinning iothread X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=29eeb814378e7eeadce67661f300930179cad96d;p=libvirt.git 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. --- diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index 48612549f9..45ff3c0a66 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -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;