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
..
2016-05-18 15:04:27 +03:00
2013-04-08 18:13:10 +02:00
2016-06-24 05:13:57 +03:00
2016-05-19 16:42:30 +02:00
2014-10-23 16:41:25 +02:00
2016-04-07 19:57:33 +03:00
2016-06-06 16:59:31 +01:00
2016-07-07 15:24:52 -03:00
2013-04-08 18:13:10 +02:00
2016-06-22 12:53:26 +02:00