From: John Ferlan Date: Wed, 6 May 2015 14:19:30 +0000 (-0400) Subject: qemu: Clear autofil fill flag when pinning iothread X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=361801362fb047ceb63e303efec224aea73a179a;p=people%2Fliuw%2Flibxenctrl-split%2Flibvirt.git qemu: Clear autofil fill flag when pinning iothread 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 --- diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index f7433ee9b..e6efc809b 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -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;