diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 6b557d1481..0ce41884bc 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -15070,6 +15070,12 @@ virDomainDefParseXML(xmlDocPtr xml, goto error; } + if (virDomainNumaGetMaxCPUID(def->numa) >= def->maxvcpus) { + virReportError(VIR_ERR_INTERNAL_ERROR, "%s", + _("CPU IDs in exceed the count")); + goto error; + } + if (virDomainNumatuneParseXML(def->numa, def->placement_mode == VIR_DOMAIN_CPU_PLACEMENT_MODE_STATIC,