]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iommu/amd: Introduce struct amd_iommu_viommu
authorSuravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Thu, 15 Jan 2026 06:08:09 +0000 (06:08 +0000)
committerJoerg Roedel <joerg.roedel@amd.com>
Sun, 18 Jan 2026 09:56:12 +0000 (10:56 +0100)
commite113a72576d6056aa91925beaa7256533a808750
tree14768e7ce9d62e274075511139579a760b1f8122
parentb43a29def24f38a28085635e2be39566671976a8
iommu/amd: Introduce struct amd_iommu_viommu

Which stores reference to nested parent domain assigned during the call to
struct iommu_ops.viommu_init(). Information in the nest parent is needed
when setting up the nested translation.

Note that the viommu initialization will be introduced in subsequent
commit.

Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Nicolin Chen <nicolinc@nvidia.com>
Signed-off-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
drivers/iommu/amd/amd_iommu_types.h
drivers/iommu/amd/iommu.c
drivers/iommu/amd/iommufd.c
drivers/iommu/amd/iommufd.h