qemu-e2k/include/hw/s390x
Cornelia Huck 2a79eb1a61 s390x/css: provide a dev_path for css devices
We need to implement the get_dev_path method for the css bus, or
else we might end up with two different devices having the same
qdev_path.

This was noticed when adding two scsi_hd controllers: The SCSIBus
code will produce a non-unique dev_path for vmstate usage if the
parent bus does not provide the get_dev_path method.

We simply use the device's bus id, as this is unique and we won't
have any deeper hierarchy from a channel subsystem perspective
anyway.

Note that we need to disable this for older machine versions,
as this changes the migration format.

Reported-by: Marc Hartmayer <mhartmay@linux.vnet.ibm.com>
Reviewed-by: Halil Pasic <pasic@linux.vnet.ibm.com>
Reviewed-by: Sascha Silbe <silbe@linux.vnet.ibm.com>
Tested-by: Marc Hartmayer <mhartmay@linux.vnet.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
2016-07-20 15:47:25 +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/css: factor out some generic code from virtio_ccw_device_realize() 2016-07-11 09:48:05 +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: enable runtime instrumentation 2016-05-17 15:50:29 +02:00
s390_flic.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
sclp.h Use #include "..." for our own headers, <...> for others 2016-07-12 16:19:16 +02:00
storage-keys.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00