• Christoph Hellwig's avatar
    virtio_pci: remove struct virtio_pci_vq_info · 5c34d002
    Christoph Hellwig authored
    We don't really need struct virtio_pci_vq_info, as most field in there
    are redundant:
     - the vq backpointer is not strictly neede to start with
     - the entry in the vqs list is not needed - the generic virtqueue already
       has list, we only need to check if it has a callback to get the same
     - we can use a simple array to look up the MSI-X vec if needed.
     - That simple array now also duoble serves to replace the per_vq_vectors
    Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
    Signed-off-by: Michael S. Tsirkin's avatarMichael S. Tsirkin <mst@redhat.com>
virtio_pci_common.c 13.1 KB