qemu-e2k/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
..
Makefile.objs s390x/css: Unplug handler of virtual css bridge 2016-07-11 09:48:05 +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 include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
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
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: Clean up includes 2016-01-29 15:07:22 +00:00
s390-skeys.c s390: use FILE instead of QEMUFile for creating text file 2016-05-26 11:31:05 +05:30
s390-virtio-ccw.c s390x: initialize flic before I/O subsystems 2017-04-21 09:32:09 +02:00
s390-virtio-hcall.c s390: Clean up includes 2016-01-29 15:07:22 +00:00
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 s390x: remove useless cast 2016-09-15 15:32:22 +03:00
sclpcpu.c s390: Clean up includes 2016-01-29 15:07:22 +00:00
sclpquiesce.c Use #include "..." for our own headers, <...> for others 2016-07-12 16:19:16 +02:00
trace-events trace-events: fix first line comment in trace-events 2016-08-12 10:36:01 +01:00
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