virtio: add ability to iterate over vqs
commita4fc9c518e70c6e1c9c897a99b028795235d83ca
authorMichael S. Tsirkin <mst@redhat.com>
Fri, 20 Apr 2018 17:22:40 +0000 (20 20:22 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 2 May 2018 14:53:40 +0000 (2 07:53 -0700)
treeed60b6aefd8e1b41c03cccb6f89f826e259a9317
parent311a886f34311e575f7f911ebdbcbba9f05a498e
virtio: add ability to iterate over vqs

commit 24a7e4d20783c0514850f24a5c41ede46ab058f0 upstream.

For cleanup it's helpful to be able to simply scan all vqs and discard
all data. Add an iterator to do that.

Cc: stable@vger.kernel.org
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/virtio.h