]> git.proxmox.com Git - mirror_qemu.git/commit
hw/scsi/vmw_pvscsi.c: Use device_cold_reset() to reset SCSI devices
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 13 Oct 2022 16:06:23 +0000 (17:06 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 18 Oct 2022 11:58:04 +0000 (13:58 +0200)
commit8b5335e381e7fd7554a65c6d591875ade1cea062
tree38edb6696fc928ad997ea114af61c680f8eee6f3
parent4a5fc890b1d3609f7b22d2094d094e80c24bcf40
hw/scsi/vmw_pvscsi.c: Use device_cold_reset() to reset SCSI devices

Currently the vwm_pvscsi controller resets individual SCSI devices
with the device_legacy_reset() function.  The only difference between
this and device_cold_reset() is that device_legacy_reset() resets the
device but not any child qbuses it might have.

In this case, no SCSI device has a child qbus, so the functions have
the same behaviour.  Switch to device_cold_reset() to move away from
using the deprecated function, and bring this SCSI controller in to
line with what all the others do.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-Id: <20221013160623.1296109-3-peter.maydell@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/scsi/vmw_pvscsi.c