summaryrefslogtreecommitdiff
path: root/drivers/iommu/amd/amd_iommu.h
diff options
context:
space:
mode:
authorVasant Hegde <vasant.hegde@amd.com>2023-11-22 12:02:15 +0300
committerJoerg Roedel <jroedel@suse.de>2023-12-11 17:25:38 +0300
commitc7fc12354be0ba47566d55f4ebdc6a47bd69d5ed (patch)
tree16ba23e4cdadbcc35a195b922ef0b80e733dc044 /drivers/iommu/amd/amd_iommu.h
parent2c535dd37d677abd11b278fce89b8bdb0a55facb (diff)
downloadlinux-c7fc12354be0ba47566d55f4ebdc6a47bd69d5ed.tar.xz
iommu/amd/pgtbl_v2: Invalidate updated page ranges only
Enhance __domain_flush_pages() to detect domain page table mode and use that info to build invalidation commands. So that we can use amd_iommu_domain_flush_pages() to invalidate v2 page table. Also pass PASID, gn variable to device_flush_iotlb() so that it can build IOTLB invalidation command for both v1 and v2 page table. Signed-off-by: Vasant Hegde <vasant.hegde@amd.com> Reviewed-by: Jason Gunthorpe <jgg@nvidia.com> Link: https://lore.kernel.org/r/20231122090215.6191-10-vasant.hegde@amd.com Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/amd/amd_iommu.h')
0 files changed, 0 insertions, 0 deletions