iommu: stop calling IOMMU page tables 'p2m tables'
authorPaul Durrant <pdurrant@amazon.com>
Fri, 27 Nov 2020 17:04:47 +0000 (18:04 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 27 Nov 2020 17:04:47 +0000 (18:04 +0100)
commitfcdb988ef1934fe29fa7807dbbc155eb61e428a1
tree5c0aaf5e26d322ef503653171d1d821e5d9665e8
parent25ccd093425ce1d3a9f33ecd82e92f35952b8496
iommu: stop calling IOMMU page tables 'p2m tables'

It's confusing and not consistent with the terminology introduced with 'dfn_t'.
Just call them IOMMU page tables.

Also remove a pointless check of the 'acpi_drhd_units' list in
vtd_dump_page_table_level(). If the list is empty then IOMMU mappings would
not have been enabled for the domain in the first place.

NOTE: All calls to printk() have also been removed from
      iommu_dump_page_tables(); the implementation specific code is now
      responsible for all output.
      The check for the global 'iommu_enabled' has also been replaced by an
      ASSERT since iommu_dump_page_tables() is not registered as a key handler
      unless IOMMU mappings are enabled.
      Error messages are now prefixed with the name of the function.

Signed-off-by: Paul Durrant <pdurrant@amazon.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
xen/drivers/passthrough/amd/pci_amd_iommu.c
xen/drivers/passthrough/iommu.c
xen/drivers/passthrough/vtd/iommu.c
xen/include/xen/iommu.h