aboutsummaryrefslogtreecommitdiff
path: root/stubs
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2020-10-06 15:39:01 +0300
committerPaolo Bonzini <pbonzini@redhat.com>2020-10-12 11:50:51 -0400
commit8ddf958e8d62ada6395460b91ec5964ef21fed12 (patch)
tree72150e6dd63b3641baddf5c02c2aabe2704a975b /stubs
parenta23151e8cc8cc08546252dc9c7671171d9c44615 (diff)
downloadqemu-8ddf958e8d62ada6395460b91ec5964ef21fed12.zip
qemu-8ddf958e8d62ada6395460b91ec5964ef21fed12.tar.gz
qemu-8ddf958e8d62ada6395460b91ec5964ef21fed12.tar.bz2
scsi/scsi-bus: scsi_device_find: don't return unrealized devices
The device core first places a device on the bus and then realizes it. Make scsi_device_find avoid returing such devices to avoid races in drivers that use an iothread (currently virtio-scsi) Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1812399 Suggested-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Message-Id: <20200913160259.32145-7-mlevitsk@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Message-Id: <20201006123904.610658-11-mlevitsk@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'stubs')
0 files changed, 0 insertions, 0 deletions