]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu: Fix IOThread pids lost after qemuProcessReconnect
authorJie Wang <wangjie88@huawei.com>
Wed, 17 Oct 2018 17:14:42 +0000 (01:14 +0800)
committerJohn Ferlan <jferlan@redhat.com>
Fri, 19 Oct 2018 18:01:58 +0000 (14:01 -0400)
IOThread pids info will lost after libvirtd restart, then
if we call pinIOThread, sched_setaffinity will be called with
pid 0, not IOThread pid. So pinIOThread cannot work normally.

Signed-off-by: Jie Wang <wangjie88.huawei.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
src/qemu/qemu_process.c

index 3955eda17c5ff1331ae5a0dfe7530b90bc7b1728..9cf971808c2382b0af7650b1e8fdbfee9a142905 100644 (file)
@@ -7899,6 +7899,9 @@ qemuProcessReconnect(void *opaque)
 
     qemuDomainVcpuPersistOrder(obj->def);
 
+    if (qemuProcessDetectIOThreadPIDs(driver, obj, QEMU_ASYNC_JOB_NONE) < 0)
+        goto error;
+
     if (qemuSecurityReserveLabel(driver->securityManager, obj->def, obj->pid) < 0)
         goto error;