virtio: introduce __virtio_queue_reset()
commit3b43302c71854b263a4653b708699ce074082158
authorXuan Zhuo <xuanzhuo@linux.alibaba.com>
Mon, 17 Oct 2022 09:25:44 +0000 (17 17:25 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 7 Nov 2022 18:12:19 +0000 (7 13:12 -0500)
treeb53a98f037301a1d09ceb6f9e7af050cd90d1570
parente72cfabf4ef2f0031e5d0b8129fb1533d383654d
virtio: introduce __virtio_queue_reset()

Separate the logic of vq reset. This logic will be called directly
later.

Signed-off-by: Xuan Zhuo <xuanzhuo@linux.alibaba.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Message-Id: <20221017092558.111082-2-xuanzhuo@linux.alibaba.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio/virtio.c