[PATCH] qemu: Don't fail without emulatorpin or cpumask

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

 



This unbreaks qemu:///session that got broken by

ba63d8f7d843461f77a8206c1ef9da38388713e5.
---
 src/qemu/qemu_process.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c
index e08ec67..293ffe9 100644
--- a/src/qemu/qemu_process.c
+++ b/src/qemu/qemu_process.c
@@ -2041,8 +2041,10 @@ qemuProcessSetEmulatorAffinites(virConnectPtr conn,
         cpumask = def->cputune.emulatorpin->cpumask;
     else if (def->cpumask)
         cpumask = def->cpumask;
-    else
+    else {
+        ret = 0;
         goto cleanup;
+    }
 
     ret = virProcessInfoSetAffinity(vm->pid, cpumask);
 cleanup:
-- 
1.7.10.4

--
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]