qemu-e2k/hw/s390x
Jing Liu b804e8a62a s390x/css: Unplug handler of virtual css bridge
The previous patch moved virtual css bridge and bus out from
virtio-ccw, but kept the direct reference of virtio-ccw specific
unplug function inside css-bridge.c.

To make the virtual css bus and bridge useful for non-virtio devices,
this introduces a common unplug function pointer "unplug" to call
specific virtio-ccw unplug parts. Thus, the tight coupling to
virtio-ccw can be removed.

This unplug pointer is a member of CCWDeviceClass, which is introduced
as an abstract device layer called "ccw-device". This layer is between
DeviceState and specific devices which are plugged in virtual css bus,
like virtio-ccw device. The specific unplug handlers should be assigned
to "unplug" during initialization.

Signed-off-by: Jing Liu <liujbjl@linux.vnet.ibm.com>
Reviewed-by: Sascha Silbe <silbe@linux.vnet.ibm.com>
Reviewed-by: Dong Jia Shi <bjsdjshi@linux.vnet.ibm.com>
Reviewed-by: Yi Min Zhao <zyimin@linux.vnet.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
2016-07-11 09:48:05 +02:00
..
ccw-device.c s390x/css: Unplug handler of virtual css bridge 2016-07-11 09:48:05 +02:00
ccw-device.h s390x/css: Unplug handler of virtual css bridge 2016-07-11 09:48:05 +02:00
css-bridge.c s390x/css: Unplug handler of virtual css bridge 2016-07-11 09:48:05 +02:00
css.c s390x/css: factor out some generic code from virtio_ccw_device_realize() 2016-07-11 09:48:05 +02:00
event-facility.c
ipl.c s390x/css: Unplug handler of virtual css bridge 2016-07-11 09:48:05 +02:00
ipl.h s390x/ipl: fix reboots for migration from different bios 2016-07-11 09:48:05 +02:00
Makefile.objs s390x/css: Unplug handler of virtual css bridge 2016-07-11 09:48:05 +02:00
s390-pci-bus.c s390x/pci: add length checking for pci sclp handlers 2016-05-17 15:50:29 +02:00
s390-pci-bus.h s390x/pci: remove whitespace 2016-05-17 15:50:29 +02:00
s390-pci-inst.c s390x/pci: enhance mpcifc_service_call 2016-05-17 15:50:29 +02:00
s390-pci-inst.h s390x/pci: enhance mpcifc_service_call 2016-05-17 15:50:29 +02:00
s390-skeys-kvm.c
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/css: Factor out virtual css bridge and bus 2016-07-11 09:48:05 +02:00
s390-virtio-hcall.c
s390-virtio.c
s390-virtio.h
sclp.c
sclpcpu.c
sclpquiesce.c
trace-events trace: split out trace events for hw/s390x/ directory 2016-06-20 17:22:16 +01:00
virtio-ccw.c s390x/css: Unplug handler of virtual css bridge 2016-07-11 09:48:05 +02:00
virtio-ccw.h s390x/css: Unplug handler of virtual css bridge 2016-07-11 09:48:05 +02:00