diff options
author | John Ferlan <jferlan@redhat.com> | 2015-10-15 16:05:52 -0400 |
---|---|---|
committer | John Ferlan <jferlan@redhat.com> | 2015-10-16 06:49:19 -0400 |
commit | 10604cb8c583774fa9f1d0debbaec324e2cbfeb2 (patch) | |
tree | ef778ba900b7d317ee08f79c30765389620281eb | |
parent | 4f8e8887140207d318fd9f603e7c819b47546ae0 (diff) | |
download | libvirt-10604cb8c583774fa9f1d0debbaec324e2cbfeb2.tar.gz |
qemu: Check for niothreads == 0 in qemuSetupCgroupForIOThreads
If there are no IOThreads defined, no sense making other checks
-rw-r--r-- | src/qemu/qemu_cgroup.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qemu/qemu_cgroup.c b/src/qemu/qemu_cgroup.c index 570dab5ee2..a8e0b8cadd 100644 --- a/src/qemu/qemu_cgroup.c +++ b/src/qemu/qemu_cgroup.c @@ -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", |