[RFC PATCH v3 2/5] iommufd/device: Associate a kvm pointer to iommufd_device
Jason Gunthorpe
jgg at ziepe.ca
Wed Mar 19 16:28:48 PDT 2025
On Wed, Mar 19, 2025 at 05:31:59PM +0000, Shameer Kolothum wrote:
> Add a struct kvm * to iommufd_device_bind() fn and associate it
> with idev if bind is successful.
>
> Signed-off-by: Shameer Kolothum <shameerali.kolothum.thodi at huawei.com>
> ---
> drivers/iommu/iommufd/device.c | 5 ++++-
> drivers/iommu/iommufd/iommufd_private.h | 2 ++
> drivers/vfio/iommufd.c | 2 +-
> include/linux/iommufd.h | 4 +++-
> 4 files changed, 10 insertions(+), 3 deletions(-)
Reviewed-by: Jason Gunthorpe <jgg at nvidia.com>
I'd probably explain more in the commit message that this is to allow
VFIO to pass the KVM to iommufd so it can later be associated with
downstream objects like the viommu.
Jason
More information about the linux-arm-kernel
mailing list