]> xenbits.xensource.com Git - libvirt.git/commitdiff
conf: reject pci-root controllers with non-zero indexes
authorJán Tomko <jtomko@redhat.com>
Fri, 12 Jul 2013 13:05:51 +0000 (15:05 +0200)
committerJán Tomko <jtomko@redhat.com>
Fri, 12 Jul 2013 13:05:51 +0000 (15:05 +0200)
https://bugzilla.redhat.com/show_bug.cgi?id=981261

src/conf/domain_conf.c

index 5f0366e426b503a07700f86bb02e8654184e4c4c..602c9a6d314b3e628d65d562749d36ded3702721 100644 (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: