spapr-pci: Stop providing assigned-addresses
commitc4ec08ab70bab90685d1443d6da47293e3aa312a
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Fri, 27 Sep 2019 02:26:51 +0000 (27 12:26 +1000)
committerDavid Gibson <david@gibson.dropbear.id.au>
Fri, 4 Oct 2019 09:08:21 +0000 (4 19:08 +1000)
tree579ac8283c54db6c5ca8ec9fc2aae2d2b709e34f
parentf6d4c423a222f02bfa84a49c3d306d7341ec9bab
spapr-pci: Stop providing assigned-addresses

QEMU does not allocate PCI resources (BARs) in any case - coldplug devices
are configured by the firmware and hotplug devices rely on the guest
system to do the assignment via the PCI rescan mechanism. Also in order
to create non empty "assigned-addresses", the device has to be enabled
(i.e. PCI_COMMAND needs the MMIO bit set) first as otherwise
io_regions[i].addr are -1, and devices are not enabled at this point.

This removes "assigned-addresses" and leaves it to those who actually
do resource allocation.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Message-Id: <20190927022651.71642-1-aik@ozlabs.ru>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/spapr_pci.c