conf: reject pci-root controllers with non-zero indexes

https://bugzilla.redhat.com/show_bug.cgi?id=981261
This commit is contained in:
Ján Tomko 2013-07-12 15:05:51 +02:00
parent 945b18eb7d
commit 47a01895fb

View File

@ -5668,6 +5668,13 @@ virDomainControllerDefParseXML(xmlNodePtr node,
"have an address"));
goto error;
}
if (def->idx != 0) {
virReportError(VIR_ERR_XML_ERROR, "%s",
_("pci-root controller should have "
"index 0"));
goto error;
}
}
default: