qemu/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
..
ccw-device.c
ccw-device.h
css-bridge.c s390x/css: provide a dev_path for css devices 2016-07-20 15:47:25 +02:00
css.c s390x/css: sch_handle_start_func() handles resume, too 2016-07-20 15:47:25 +02:00
event-facility.c
ipl.c
ipl.h
Makefile.objs
s390-pci-bus.c Use #include "..." for our own headers, <...> for others 2016-07-12 16:19:16 +02:00
s390-pci-bus.h Use #include "..." for our own headers, <...> for others 2016-07-12 16:19:16 +02:00
s390-pci-inst.c Use #include "..." for our own headers, <...> for others 2016-07-12 16:19:16 +02:00
s390-pci-inst.h Use #include "..." for our own headers, <...> for others 2016-07-12 16:19:16 +02:00
s390-skeys-kvm.c
s390-skeys.c
s390-virtio-ccw.c s390x/css: provide a dev_path for css devices 2016-07-20 15:47:25 +02:00
s390-virtio-hcall.c
s390-virtio.c
s390-virtio.h Clean up decorations and whitespace around header guards 2016-07-12 16:20:46 +02:00
sclp.c
sclpcpu.c
sclpquiesce.c Use #include "..." for our own headers, <...> for others 2016-07-12 16:19:16 +02:00
trace-events
virtio-ccw.c
virtio-ccw.h Use #include "..." for our own headers, <...> for others 2016-07-12 16:19:16 +02:00