diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index 1927b3c3d336e238d434e4229bd750986ad18ad5..48612549f956fccb9f4e848a2dea0a59d9472d57 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -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;