iommu/amd: Make domain_flush_pages as global function
authorVasant Hegde <vasant.hegde@amd.com>
Wed, 22 Nov 2023 09:02:14 +0000 (09:02 +0000)
committerJoerg Roedel <jroedel@suse.de>
Mon, 11 Dec 2023 14:25:37 +0000 (15:25 +0100)
commit2c535dd37d677abd11b278fce89b8bdb0a55facb
treecf605190c3aa074045286b4c9b7cca0e37fe57ae
parent8d004ac1c67bc1584b4b6b90429487dac5b2d83f
iommu/amd: Make domain_flush_pages as global function

- Rename domain_flush_pages() -> amd_iommu_domain_flush_pages() and make
  it as global function.

- Rename amd_iommu_domain_flush_tlb_pde() -> amd_iommu_domain_flush_all()
  and make it as static.

- Convert v1 page table (io_pgtble.c) to use amd_iommu_domain_flush_pages().

Signed-off-by: Vasant Hegde <vasant.hegde@amd.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/20231122090215.6191-9-vasant.hegde@amd.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd/amd_iommu.h
drivers/iommu/amd/io_pgtable.c
drivers/iommu/amd/iommu.c