qemu/include/hw/s390x
David Hildenbrand f6102c329c s390/sclp: rework sclp event facility initialization + device realization
The current code only works by chance. The event facility is a sysbus
device, but specifies in its class structure as parent the DeviceClass
(instead of a device class).

The init function in return lies therefore at the same position as
the init function of SysBusDeviceClass and gets triggered instead -
a very bad idea of doing that (e.g. the parameter types don't match).

Let's bring the initialization code up to date, initializing the event
facility + child events in .instance_init and moving the realization of
the child events out of the init call, into the realization step.

Device realization is now automatically performed when the event facility
itself is realized. That realization implicitly triggers realization of
the child bus, which in turn initializes the events.

Please note that we have to manually propagate the realization of the bus
children, common code still has a TODO set for that task.

Reviewed-by: Matthew Rosato <mjrosato@linux.vnet.ibm.com>
Signed-off-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
2015-09-07 16:10:43 +02:00
..
adapter.h s390x/virtio-ccw: wire up irq routing and irqfds 2014-05-20 13:05:58 +02:00
ebcdic.h s390/ebcdic: Move conversion tables to header file 2013-09-20 13:55:30 +02:00
event-facility.h s390/sclp: rework sclp event facility initialization + device realization 2015-09-07 16:10:43 +02:00
s390_flic.h virtio-ccw: introduce ccw specific queue limit 2015-05-31 16:45:38 +02:00
sclp.h s390: Add PCI bus support 2015-01-12 10:14:04 +01:00
storage-keys.h s390x: Disable storage key migration on old machine type 2015-09-03 12:17:54 +02:00