diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 602ec64d508d3b0c8d485a8477cc711d64425658..68287f3d7d4db44442ff06a1e64a1f5fa32bb4aa 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -14163,6 +14163,12 @@ virDomainVcpuPinDefParseXML(xmlNodePtr node, if (virBitmapParse(tmp, 0, &def->cpumask, VIR_DOMAIN_CPUMASK_LEN) < 0) goto error; + if (virBitmapIsAllClear(def->cpumask)) { + virReportError(VIR_ERR_CONFIG_UNSUPPORTED, + _("Invalid value of 'cpuset': %s"), tmp); + goto error; + } + cleanup: VIR_FREE(tmp); ctxt->node = oldnode;