iommufd/selftest: Test IOMMU_HWPT_ALLOC_DIRTY_TRACKING
mainline inclusion from mainline-v6.7-rc1 commit 266ce58989ba05e2a24460fdbf402d766c2e3870 category: feature bugzilla: https://gitee.com/openeuler/intel-kernel/issues/I8Y6AM CVE: NA Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?266ce58989ba05e2a24460fdbf402d766c2e3870 -------------------------------- In order to selftest the iommu domain dirty enforcing implement the mock_domain necessary support and add a new dev_flags to test that the hwpt_alloc/attach_device fails as expected. Expand the existing mock_domain fixture with a enforce_dirty test that exercises the hwpt_alloc and device attachment. Intel-SIG: 266ce58989ba iommufd/selftest: Test IOMMU_HWPT_ALLOC_DIRTY_TRACKING Backport IOMMUFD Dirty Tracking Link: https://lore.kernel.org/r/20231024135109.73787-15-joao.m.martins@oracle.com Signed-off-by:Joao Martins <joao.m.martins@oracle.com> Reviewed-by:
Kevin Tian <kevin.tian@intel.com> Signed-off-by:
Jason Gunthorpe <jgg@nvidia.com> [ jz: amend commit log ] Signed-off-by:
Jason Zeng <jason.zeng@intel.com>
Loading
Please sign in to comment