mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
vhost-user-scsi: free the inflight area when reset
Keep it the same to vhost-user-blk. At the same time, fix the vhost_reset_device. Signed-off-by: Li Feng <fengli@smartx.com> Message-Id: <20231123055431.217792-3-fengli@smartx.com> Reviewed-by: Raphael Norwitz <raphael.norwitz@nutanix.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
298d4f892e
commit
95e1019a4a
2 changed files with 17 additions and 1 deletions
|
@ -2137,7 +2137,7 @@ void virtio_reset(void *opaque)
|
|||
vdev->device_endian = virtio_default_endian();
|
||||
}
|
||||
|
||||
if (vdev->vhost_started) {
|
||||
if (vdev->vhost_started && k->get_vhost) {
|
||||
vhost_reset_device(k->get_vhost(vdev));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue