• Alex Williamson's avatar
    vfio/type1: Chunk contiguous reserved/invalid page mappings · babbf176
    Alex Williamson authored
    We currently map invalid and reserved pages, such as often occur from
    mapping MMIO regions of a VM through the IOMMU, using single pages.
    There's really no reason we can't instead follow the methodology we
    use for normal pages and find the largest possible physically
    contiguous chunk for mapping.  The only difference is that we don't
    do locked memory accounting for these since they're not back by RAM.
    
    In most applications this will be a very minor improvement, but when
    graphics and GPGPU devices are in play, MMIO BARs become non-trivial.
    Signed-off-by: default avatarAlex Williamson <alex.williamson@redhat.com>
    babbf176
vfio_iommu_type1.c 26.1 KB