]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
qemu: Clear autofil fill flag when pinning iothread
authorJohn Ferlan <jferlan@redhat.com>
Wed, 6 May 2015 14:19:30 +0000 (10:19 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Thu, 14 May 2015 12:36:34 +0000 (08:36 -0400)
https://bugzilla.redhat.com/show_bug.cgi?id=1218577

Treat pinning an IOThread via API as if someone added an IOThread to
ensure the iothreadid doesn't cause the guest to disappear

src/qemu/qemu_driver.c

index f7433ee9b3aaaeac7e79e96c2606444086bbf13b..e6efc809bf076eaa84d0852b79d06a18ad3bd74d 100644 (file)
@@ -6016,6 +6016,7 @@ qemuDomainPinIOThread(virDomainPtr dom,
 
         virBitmapFree(iothrid->cpumask);
         iothrid->cpumask = cpumask;
+        iothrid->autofill = false;
 
         /* Configure the corresponding cpuset cgroup before set affinity. */
         if (virCgroupHasController(priv->cgroup,
@@ -6072,6 +6073,7 @@ qemuDomainPinIOThread(virDomainPtr dom,
 
         virBitmapFree(iothrid->cpumask);
         iothrid->cpumask = cpumask;
+        iothrid->autofill = false;
 
         ret = virDomainSaveConfig(cfg->configDir, persistentDef);
         goto endjob;