virtio-mmio: Remove virtqueue list from mmio device
authorViresh Kumar <viresh.kumar@linaro.org>
Wed, 21 May 2025 11:33:46 +0000 (17:03 +0530)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 1 Aug 2025 13:11:07 +0000 (09:11 -0400)
commit564a69ad90d15c782176e1a8c9e1c95661e1aed0
tree913293d8926af23e80169864eacde39cacd6a3d7
parent482bd84f1fab20ac6c4d112945ae2d1bdb36839f
virtio-mmio: Remove virtqueue list from mmio device

The MMIO transport implementation creates a list of virtqueues for a
virtio device, while the same is already available in the struct
virtio_device.

Don't create a duplicate list, and use the other one instead.

While at it, fix the virtio_device_for_each_vq() macro to accept an
argument like "&vm_dev->vdev" (which currently fails to build).

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Message-Id: <3e56c6f74002987e22f364d883cbad177cd9ad9c.1747827066.git.viresh.kumar@linaro.org>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
drivers/virtio/virtio_mmio.c
include/linux/virtio.h