summaryrefslogtreecommitdiffstats
path: root/include/exec/user
diff options
context:
space:
mode:
authorPierre Morel2016-11-23 07:26:34 +0100
committerCornelia Huck2017-01-20 10:02:02 +0100
commitd2f07120a35ab31715e9c73438705b635873d06a (patch)
treed2d0b9497267b73181055ce56e8e4c2e0a4ef5c3 /include/exec/user
parents390x/pci: use hashtable to look up zpci via fh (diff)
downloadqemu-d2f07120a35ab31715e9c73438705b635873d06a.tar.gz
qemu-d2f07120a35ab31715e9c73438705b635873d06a.tar.xz
qemu-d2f07120a35ab31715e9c73438705b635873d06a.zip
s390x/pci: handle PCIBridge bus number
The PCI bus number is usually set by the host during the enumeration. In the s390 architecture we neither get a Device Tree nor have an enumeration understanding bridge devices. Let's fake the enumeration on reset and set the PCI_PRIMARY_BUS, PCI_SECONDARY_BUS and PCI_SUBORDINATE_BUS config entries for the bridges. Let's add the configuration of these three config entries on bridge hot plug. The bus number is calculated based on a new entry, bus_num of the S390pciState device. This commit is inspired by what spapr pci does. Signed-off-by: Pierre Morel <pmorel@linux.vnet.ibm.com> Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Diffstat (limited to 'include/exec/user')
0 files changed, 0 insertions, 0 deletions