[PATCH v7 08/16] iommufd/viommu: Keep a reference to the KVM file

Jason Gunthorpe jgg at ziepe.ca
Fri Oct 30 09:58:25 PDT 2026


On Fri, Oct 30, 2026 at 07:54:04AM +0000, Tian, Kevin wrote:

> Besides, it might be a good idea to return an error if idev->kvm_file is
> NULL in iommufd_viommu_alloc_ioctl(). I don't think the viommu logic
> is designed for native application...

That's probably going too far..

It should be possible to fully test most of the viommu stuff without
an actual kvm, for example.

Jason



More information about the linux-arm-kernel mailing list