提交 36180136 编写于 作者: J John Ferlan

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
上级 375c185c
...@@ -6016,6 +6016,7 @@ qemuDomainPinIOThread(virDomainPtr dom, ...@@ -6016,6 +6016,7 @@ qemuDomainPinIOThread(virDomainPtr dom,
virBitmapFree(iothrid->cpumask); virBitmapFree(iothrid->cpumask);
iothrid->cpumask = cpumask; iothrid->cpumask = cpumask;
iothrid->autofill = false;
/* Configure the corresponding cpuset cgroup before set affinity. */ /* Configure the corresponding cpuset cgroup before set affinity. */
if (virCgroupHasController(priv->cgroup, if (virCgroupHasController(priv->cgroup,
...@@ -6072,6 +6073,7 @@ qemuDomainPinIOThread(virDomainPtr dom, ...@@ -6072,6 +6073,7 @@ qemuDomainPinIOThread(virDomainPtr dom,
virBitmapFree(iothrid->cpumask); virBitmapFree(iothrid->cpumask);
iothrid->cpumask = cpumask; iothrid->cpumask = cpumask;
iothrid->autofill = false;
ret = virDomainSaveConfig(cfg->configDir, persistentDef); ret = virDomainSaveConfig(cfg->configDir, persistentDef);
goto endjob; goto endjob;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册