vfio/type1: account iommu allocations
authorPasha Tatashin <pasha.tatashin@soleen.com>
Thu, 30 Nov 2023 20:09:00 +0000 (20:09 +0000)
committerAlex Williamson <alex.williamson@redhat.com>
Mon, 4 Dec 2023 21:41:36 +0000 (14:41 -0700)
commit160912fc3d4ae492954c25cd78b90083869f0011
treecc746f9f67af18a7aca797aec7c24408b6f83d48
parent33cc938e65a98f1d29d0a18403dbbee050dcad9a
vfio/type1: account iommu allocations

iommu allocations should be accounted in order to allow admins to
monitor and limit the amount of iommu memory.

Signed-off-by: Pasha Tatashin <pasha.tatashin@soleen.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/20231130200900.2320829-1-pasha.tatashin@soleen.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/vfio_iommu_type1.c