qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

virtio-scsi: convert to new virtio_delete_queue

Use virtio_delete_queue to make it more clear.

Signed-off-by: Pan Nengyuan <pannengyuan@huawei.com>
Message-Id: <20200117075547.60864-3-pannengyuan@huawei.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>

authored by

Pan Nengyuan and committed by
Michael S. Tsirkin
2feff67c dd958f9e

+3 -3
+3 -3
hw/scsi/virtio-scsi.c
··· 945 945 VirtIOSCSICommon *vs = VIRTIO_SCSI_COMMON(dev); 946 946 int i; 947 947 948 - virtio_del_queue(vdev, 0); 949 - virtio_del_queue(vdev, 1); 948 + virtio_delete_queue(vs->ctrl_vq); 949 + virtio_delete_queue(vs->event_vq); 950 950 for (i = 0; i < vs->conf.num_queues; i++) { 951 - virtio_del_queue(vdev, i + 2); 951 + virtio_delete_queue(vs->cmd_vqs[i]); 952 952 } 953 953 g_free(vs->cmd_vqs); 954 954 virtio_cleanup(vdev);