iommu/amd: Add 5 level guest page table support
authorVasant Hegde <vasant.hegde@amd.com>
Fri, 10 Mar 2023 09:00:00 +0000 (09:00 +0000)
committerJoerg Roedel <jroedel@suse.de>
Tue, 28 Mar 2023 13:31:31 +0000 (15:31 +0200)
commitf594496403fa383259aa7dfad92f383a2ee07e1b
tree2a533c413696fe7b68691b6517f172d2a528e224
parent4d4a0dbab2b998692f54fa6f7a9d2eb675110743
iommu/amd: Add 5 level guest page table support

Newer AMD IOMMU supports 5 level guest page table (v2 page table). If both
processor and IOMMU supports 5 level page table then enable it. Otherwise
fall back to 4 level page table.

Co-developed-by: Wei Huang <wei.huang2@amd.com>
Signed-off-by: Wei Huang <wei.huang2@amd.com>
Reviewed-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Signed-off-by: Vasant Hegde <vasant.hegde@amd.com>
Link: https://lore.kernel.org/r/20230310090000.1117786-1-vasant.hegde@amd.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd/amd_iommu.h
drivers/iommu/amd/amd_iommu_types.h
drivers/iommu/amd/init.c
drivers/iommu/amd/io_pgtable_v2.c
drivers/iommu/amd/iommu.c