docs: add slot when adding new PCIe root port
authorVincent Bernat <vincent@bernat.ch>
Mon, 14 Jun 2021 11:43:57 +0000 (13:43 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Sat, 3 Jul 2021 07:12:35 +0000 (03:12 -0400)
commit9e2423ef58f37e1d9def4ef33b054cb7e86da1f7
tree82beb03340c7d75e6c70c251dc005c8be44ecec2
parentee80f5ba22c660453c012a92c766f13498fd6a09
docs: add slot when adding new PCIe root port

Without providing a specific slot, QEMU won't be able to create the
second additional PCIe root port with the following error:

    $ qemu-system-x86_64 [...] -machine q35 \
    >    -device pcie-root-port,bus=pcie.0,id=rp1 \
    >    -device pcie-root-port,bus=pcie.0,id=rp2
    qemu-system-x86_64: -device pcie-root-port,bus=pcie.0,id=rp2:
    Can't add chassis slot, error -16

This is due to the fact they both try to use slot 0. Update the
documentation to specify a slot for each new PCIe root port.

Signed-off-by: Vincent Bernat <vincent@bernat.ch>
Message-Id: <20210614114357.1146725-1-vincent@bernat.ch>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
docs/pcie_pci_bridge.txt