]> git.ipfire.org Git - thirdparty/qemu.git/commit
s390x: follow qdev tree to detect SCSI device on a CCW bus
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 28 Mar 2022 07:40:00 +0000 (09:40 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 6 Apr 2022 12:31:56 +0000 (14:31 +0200)
commit7d2eb76d0407fc391b78df16d17f1e616ec3e228
tree368eea85a315f61c481b6f54343c5deac00c9740
parentd8701185f40cc900d23cd93411abf1554d05ed7b
s390x: follow qdev tree to detect SCSI device on a CCW bus

Do not make assumptions on the parent type of the SCSIDevice, instead
use object_dynamic_cast all the way up to the CcwDevice.  This is cleaner
because there is no guarantee that the bus is on a virtio-scsi device;
that is only the case for the default configuration of QEMU's s390x
target.

Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/s390x/ipl.c