Re: [PATCH v7 08/16] iommufd/viommu: Keep a reference to the KVM file
From: Jason Gunthorpe
Date: Wed Oct 28 2026 - 15:21:53 EST
On Thu, 08 Oct 2026 11:29:47 +0530, Aneesh Kumar K.V (Arm) <aneesh.kumar@xxxxxxxxxx> wrote:
> The TSM vDevice operations need access to the KVM associated with the
> device's vIOMMU. Save the device's KVM file in the iommufd_viommu when the
> vIOMMU is allocated, and take a file reference so it remains valid for the
> lifetime of the vIOMMU.
>
> Release the reference when the vIOMMU is destroyed.
>
> [...]
Reviewed-by: Jason Gunthorpe <jgg@xxxxxxxxxx>
--
Jason