Skip to content
  • Andy Lutomirski's avatar
    virtio: Add improved queue allocation API · 2a2d1382
    Andy Lutomirski authored
    
    
    This leaves vring_new_virtqueue alone for compatbility, but it
    adds two new improved APIs:
    
    vring_create_virtqueue: Creates a virtqueue backed by automatically
    allocated coherent memory.  (Some day it this could be extended to
    support non-coherent memory, too, if there ends up being a platform
    on which it's worthwhile.)
    
    __vring_new_virtqueue: Creates a virtqueue with a manually-specified
    layout.  This should allow mic_virtio to work much more cleanly.
    
    Signed-off-by: default avatarAndy Lutomirski <luto@kernel.org>
    Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
    2a2d1382