]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: limit chassisNr, and busNr to a minimum value of 1, not 0
authorLaine Stump <laine@laine.org>
Mon, 20 Jun 2016 18:24:35 +0000 (14:24 -0400)
committerLaine Stump <laine@laine.org>
Tue, 21 Jun 2016 15:54:46 +0000 (11:54 -0400)
commitdf2fb9bfff7906296d191de3431384b2e0729257
tree62747ca6c7590c56fa6ae6b9e7db39e6a6c63243
parentf83ab972bca8026f4c0f47508ee0580c16978ffd
conf: limit chassisNr, and busNr to a minimum value of 1, not 0

In the case of chassisNr (used to set chassis_nr of a pci-bridge
controller), 0 is reserved for / used by the pci[e]-root bus. In the
base of busNr, a value of 0 would mean that the root bus had no places
available to plug in new buses, including the pxb itself (the
documentation I wrote for pxb even noted the limit of busNr as 1.254).

NB: oddly, the "chassis" attribute, which is used for pcie-root-port
and pcie-switch-downstream-port *can* be set to 0, since it's the
combination of {chassis, slot} that needs to be unique, not chassis by
itself (and slot 0 of pcie-root is reserved, while pcie-*-port can use
*only* slot 0).

This resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1342962
docs/formatdomain.html.in
src/conf/domain_conf.c