diff options
author | Fei Li <sherrylf@linux.vnet.ibm.com> | 2016-11-24 11:10:39 +0100 |
---|---|---|
committer | Cornelia Huck <cornelia.huck@de.ibm.com> | 2017-04-21 09:32:09 +0200 |
commit | dde522bbc5feb2862afb243bb49c590fe65dce66 (patch) | |
tree | 1823392ac35c26189f22d92b262af2a1bd783f0f /include/hw/virtio | |
parent | bc66d6cbca780c5b8c237b9d355caa8274e5b312 (diff) | |
download | qemu-dde522bbc5feb2862afb243bb49c590fe65dce66.zip qemu-dde522bbc5feb2862afb243bb49c590fe65dce66.tar.gz qemu-dde522bbc5feb2862afb243bb49c590fe65dce66.tar.bz2 |
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>
Diffstat (limited to 'include/hw/virtio')
0 files changed, 0 insertions, 0 deletions