[PATCH 1/3] qemu: cpu: Don't remove pinning of cold-unplugged cpu

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



After adding support for offline vcpu pinning the code that removes the
pinning for cpu cold-unplug was forgotten. This fixes up commit 02ae21d

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1316371
---
 src/qemu/qemu_driver.c | 13 -------------
 1 file changed, 13 deletions(-)

diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
index 72ed3c0..c1bae52 100644
--- a/src/qemu/qemu_driver.c
+++ b/src/qemu/qemu_driver.c
@@ -4917,19 +4917,6 @@ qemuDomainSetVcpusFlags(virDomainPtr dom, unsigned int nvcpus,
     }

     if (persistentDef) {
-        /* remove vcpupin entries for vcpus that were unplugged */
-        if (nvcpus < virDomainDefGetVcpus(persistentDef)) {
-            for (i = virDomainDefGetVcpus(persistentDef) - 1; i >= nvcpus; i--) {
-                virDomainVcpuInfoPtr vcpu = virDomainDefGetVcpu(persistentDef,
-                                                                i);
-
-                if (vcpu) {
-                    virBitmapFree(vcpu->cpumask);
-                    vcpu->cpumask = NULL;
-                }
-            }
-        }
-
         if (flags & VIR_DOMAIN_VCPU_MAXIMUM) {
             if (virDomainDefSetVcpusMax(persistentDef, nvcpus) < 0)
                 goto endjob;
-- 
2.6.2

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]