Skip to content
Commit babbf176 authored by Alex Williamson's avatar Alex Williamson
Browse files

vfio/type1: Chunk contiguous reserved/invalid page mappings



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>
parent 6fe1010d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment