-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
iommu: Add iommu->id and iommu_device_get_from_id
For nested translation cases in a multi-IOMMU environment, add iommu->id to struct iommu_device so a driver can simply get the driver private data via the returning iommu pointer. This allows iommufd reporting to a user space VMM, via its hw_info ioctl, the existence of multiple underlying pyhsical IOMMUs. VMM should use this information to create a corresponding number of virtual IOMMUs for nested translation support. This is helpful for VMM to redirect its invalidation requests to physical IOMMUs, and very essential for HW features, such as AMD's vIOMMU and SMMU's VCMDQ, to share HW resources with vIOMMUs. Signed-off-by: Nicolin Chen <nicolinc@nvidia.com>
- Loading branch information
Showing
3 changed files
with
18 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters