scsi/scsi_bus: Add scsi_device_get
commit8ff34495601067d02edb54b4346cace84ec4e1df
authorMaxim Levitsky <mlevitsk@redhat.com>
Tue, 6 Oct 2020 12:39:02 +0000 (6 15:39 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 12 Oct 2020 15:50:51 +0000 (12 11:50 -0400)
tree7cf8d0bf91434251488d06b8e8c2dc59c861014d
parent8ddf958e8d62ada6395460b91ec5964ef21fed12
scsi/scsi_bus: Add scsi_device_get

Add scsi_device_get which finds the scsi device
and takes a reference to it.

Suggested-by: Stefan Hajnoczi <stefanha@gmail.com>
Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com>
Message-Id: <20200913160259.32145-8-mlevitsk@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20201006123904.610658-12-mlevitsk@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/scsi/scsi-bus.c
include/hw/scsi/scsi.h