scsi: remove devs array from SCSIBus
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 28 Jul 2011 16:02:13 +0000 (18:02 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 28 Oct 2011 17:25:51 +0000 (19:25 +0200)
commita10a950dddbb1169a555e9f74db2564e514c0885
tree7f867312c0062f25c182f0660ed92aafdc69ef4a
parentb2fa1f375bdab9cbda4818938ca3555d1f305116
scsi: remove devs array from SCSIBus

Change the devs array into a linked list, and add a scsi_device_find
function to navigate the children list instead.  This lets the SCSI
bus use more complex addressing, and HBAs can talk to the correct device
when there are multiple LUNs per target.

scsi_device_find may return another LUN on the same target if none is
found that matches exactly.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/esp.c
hw/lsi53c895a.c
hw/qdev.h
hw/scsi-bus.c
hw/scsi.h
hw/spapr_vscsi.c