]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
qemu: Check for niothreads == 0 in qemuSetupCgroupForIOThreads
authorJohn Ferlan <jferlan@redhat.com>
Thu, 15 Oct 2015 20:05:52 +0000 (16:05 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Fri, 16 Oct 2015 10:49:19 +0000 (06:49 -0400)
If there are no IOThreads defined, no sense making other checks

src/qemu/qemu_cgroup.c

index 570dab5ee20c5a53824a530c83bf033dc3c17140..a8e0b8caddcead23455aa3fb4c8a966d7f880b86 100644 (file)
@@ -1163,6 +1163,9 @@ qemuSetupCgroupForIOThreads(virDomainObjPtr vm)
     char *mem_mask = NULL;
     virDomainNumatuneMemMode mem_mode;
 
+    if (def->niothreadids == 0)
+        return 0;
+
     if ((period || quota) &&
         !virCgroupHasController(priv->cgroup, VIR_CGROUP_CONTROLLER_CPU)) {
         virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",