• J
    virtio: introduce vector to virtqueues mapping · e0d686bf
    Jason Wang 提交于
    Currently we will try to traverse all virtqueues to find a subset that
    using a specific vector. This is sub optimal when we will support
    hundreds or even thousands of virtqueues. So this patch introduces a
    method which could be used by transport to get all virtqueues that
    using a same vector. This is done through QLISTs and the number of
    QLISTs was queried through a transport specific method. When guest
    setting vectors, the virtqueue will be linked and helpers for traverse
    the list was also introduced.
    
    The first user will be virtio pci which will use this to speed up
    MSI-X masking and unmasking handling.
    
    Cc: Michael S. Tsirkin <mst@redhat.com>
    Signed-off-by: NJason Wang <jasowang@redhat.com>
    Reviewed-by: NMichael S. Tsirkin <mst@redhat.com>
    Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
    e0d686bf
virtio.c 36.5 KB