HomeFreeBSD

iommu_gas: pass size to iommu_map without rounding

Description

iommu_gas: pass size to iommu_map without rounding

Let the caller to iommu_map pass the size parameter without rounding
it up to a multiple of page size. Let iommu_map round it up when
necessary, which is not all of the time, so that in some cases less
space is reserved.

Reviewed by: alc, kib (previous version)
Tested by: pho, br
Discussed with: andrew
MFC after: 3 weeks
Differential Revision: https://reviews.freebsd.org/D35424

(cherry picked from commit 19bb5a7244ff0374f44068a20df9393a1c88de5d)

Details

Provenance
dougmAuthored on Jun 10 2022, 6:56 PM
Reviewer
alc
Differential Revision
D35424: iommu_gas: pass size without page alignment
Parents
rG4ae24f166c81: Check if iommu ctx is valid before passing it to functions.
Branches
Unknown
Tags
Unknown