diff options
author | Maxim Levitsky <mlevitsk@redhat.com> | 2020-10-06 15:39:03 +0300 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-10-12 11:50:51 -0400 |
commit | 07a47d4a1879370009baab44f1f387610d88a299 (patch) | |
tree | 3e27519818491a95858ca71950f042f4c0ada21b /hw/scsi/mfi.h | |
parent | 8ff34495601067d02edb54b4346cace84ec4e1df (diff) | |
download | qemu-07a47d4a1879370009baab44f1f387610d88a299.zip |
virtio-scsi: use scsi_device_get
This will help us to avoid the scsi device disappearing
after we took a reference to it.
It doesn't by itself forbid case when we try to access
an unrealized device
Suggested-by: Stefan Hajnoczi <stefanha@gmail.com>
Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-Id: <20200913160259.32145-9-mlevitsk@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20201006123904.610658-13-mlevitsk@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/scsi/mfi.h')
0 files changed, 0 insertions, 0 deletions