qemu-e2k/include/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
..
adapter.h s390x/virtio-ccw: wire up irq routing and irqfds 2014-05-20 13:05:58 +02:00
css-bridge.h s390x/css: provide a dev_path for css devices 2016-07-20 15:47:25 +02:00
css.h s390x: register I/O adapters per ISC during init 2017-04-21 09:32:09 +02:00
ebcdic.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
event-facility.h Use #include "..." for our own headers, <...> for others 2016-07-12 16:19:16 +02:00
ioinst.h Clean up header guards that don't match their file name 2016-07-12 16:19:16 +02:00
s390-virtio-ccw.h s390x/kvm: disable cpu model for the 2.7 machine 2016-09-19 11:05:51 +02:00
s390_flic.h virtio-ccw: support VIRTIO_QUEUE_MAX virtqueues 2017-02-24 10:15:18 +01:00
sclp.h s390x/sclp: propagate hmfai 2016-09-06 17:06:50 +02:00
storage-keys.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00