diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in index 7d3436304babca360b471d34fb09b936bd4b7cb2..f660aa685c34cbdfae5ca027a2700d33154fe643 100644 --- a/docs/formatdomain.html.in +++ b/docs/formatdomain.html.in @@ -3277,7 +3277,7 @@ control QEMU's "chassis_nr" option for the pci-bridge device (normally libvirt automatically sets this to the same value as the index attribute of the pci controller). If set, chassisNr - must be between 0 and 255. + must be between 1 and 255.
chassis
diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index f2086826a9e601717889c11bf9ea574234df668b..75ad03f49aa4da551c2394104dc66060ccb2c243 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -8405,11 +8405,11 @@ virDomainControllerDefParseXML(xmlNodePtr node, chassisNr); goto error; } - if (def->opts.pciopts.chassisNr < 0 || + if (def->opts.pciopts.chassisNr < 1 || def->opts.pciopts.chassisNr > 255) { virReportError(VIR_ERR_XML_ERROR, _("PCI controller chassisNr '%s' out of range " - "- must be 0-255"), + "- must be 1-255"), chassisNr); goto error; } @@ -8456,11 +8456,11 @@ virDomainControllerDefParseXML(xmlNodePtr node, busNr); goto error; } - if (def->opts.pciopts.busNr < 0 || + if (def->opts.pciopts.busNr < 1 || def->opts.pciopts.busNr > 254) { virReportError(VIR_ERR_XML_ERROR, _("PCI controller busNr '%s' out of range " - "- must be 0-254"), + "- must be 1-254"), busNr); goto error; }