diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index d207ed5bf6..00d977cd95 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -5083,10 +5083,10 @@ virDomainControllerDefValidate(const virDomainControllerDef *controller) /* Only validate the target index if it's been set */ if (opts->targetIndex != -1) { - if (opts->targetIndex < 0 || opts->targetIndex > 31) { + if (opts->targetIndex < 0 || opts->targetIndex > 30) { virReportError(VIR_ERR_XML_ERROR, _("PCI controller target index '%d' out of " - "range - must be 0-31"), + "range - must be 0-30"), opts->targetIndex); return -1; } diff --git a/tests/qemuxml2argvdata/qemuxml2argv-pseries-phb-invalid-target-index-3.xml b/tests/qemuxml2argvdata/qemuxml2argv-pseries-phb-invalid-target-index-3.xml index 864c5d8758..3d99da4995 100644 --- a/tests/qemuxml2argvdata/qemuxml2argv-pseries-phb-invalid-target-index-3.xml +++ b/tests/qemuxml2argvdata/qemuxml2argv-pseries-phb-invalid-target-index-3.xml @@ -8,10 +8,10 @@ /usr/bin/qemu-system-ppc64 - + - +