qemu/hw/s390x
Fei Li dde522bbc5 s390x: register I/O adapters per ISC during init
The I/O adapters should exist as soon as the bus/infrastructure
exists, and not only when the guest is actually trying to do something
with them. While the lazy allocation was not wrong, allocating at init
time is cleaner, both for the architecture and the code. Let's adjust
this by having each device type (currently for PCI and virtio-ccw)
register the adapters for each ISC (as now we don't know which ISC the
guest will use) as soon as it initializes.

Use a two-dimensional array io_adapters[type][isc] to store adapters
in ChannelSubSys, so that we can conveniently get the adapter id by
the helper function css_get_adapter_id(type, isc).

Signed-off-by: Fei Li <sherrylf@linux.vnet.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
2017-04-21 09:32:09 +02:00
..
ccw-device.c s390x/css: consolidate the devno property for ccw devices 2017-04-21 09:32:09 +02:00
ccw-device.h s390x/css: consolidate the devno property for ccw devices 2017-04-21 09:32:09 +02:00
css-bridge.c s390x: register I/O adapters per ISC during init 2017-04-21 09:32:09 +02:00
css.c s390x: register I/O adapters per ISC during init 2017-04-21 09:32:09 +02:00
event-facility.c
ipl.c s390x/ipl: Load network boot image 2017-02-28 12:04:48 +01:00
ipl.h s390x/ipl: Load network boot image 2017-02-28 12:04:48 +01:00
Makefile.objs
s390-pci-bus.c s390x: register I/O adapters per ISC during init 2017-04-21 09:32:09 +02:00
s390-pci-bus.h s390x: use enum for adapter type and standardize its naming 2017-04-21 09:32:09 +02:00
s390-pci-inst.c s390x: register I/O adapters per ISC during init 2017-04-21 09:32:09 +02:00
s390-pci-inst.h s390x/pci: make S390PCIIOMMU inherit Object 2017-01-20 09:48:09 +01:00
s390-skeys-kvm.c
s390-skeys.c
s390-virtio-ccw.c s390x: initialize flic before I/O subsystems 2017-04-21 09:32:09 +02:00
s390-virtio-hcall.c
s390-virtio.c s390x/ipl: Extend S390IPLState to support network boot 2017-02-28 12:04:48 +01:00
s390-virtio.h s390x/ipl: Extend S390IPLState to support network boot 2017-02-28 12:04:48 +01:00
sclp.c
sclpcpu.c
sclpquiesce.c
trace-events
virtio-ccw.c s390x: register I/O adapters per ISC during init 2017-04-21 09:32:09 +02:00
virtio-ccw.h virtio-ccw: add virtio-crypto-ccw device 2017-02-24 10:15:18 +01:00