iommu/amd: Add support for Guest IO protection
authorSuravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Thu, 25 Aug 2022 06:39:37 +0000 (06:39 +0000)
committerJoerg Roedel <jroedel@suse.de>
Wed, 7 Sep 2022 14:12:36 +0000 (16:12 +0200)
commit643feb0072d5aad9bf5f38eca3fb78c2f8d9f140
treeff7901b74547d1b602032f6cf0467ea2a91224c2
parentaaac38f614871df252aa7459647bf68d42f7c3e7
iommu/amd: Add support for Guest IO protection

AMD IOMMU introduces support for Guest I/O protection where the request
from the I/O device without a PASID are treated as if they have PASID 0.

Co-developed-by: Vasant Hegde <vasant.hegde@amd.com>
Signed-off-by: Vasant Hegde <vasant.hegde@amd.com>
Signed-off-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Link: https://lore.kernel.org/r/20220825063939.8360-8-vasant.hegde@amd.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd/amd_iommu_types.h
drivers/iommu/amd/init.c
drivers/iommu/amd/iommu.c