x86/IOMMU: introduce init-ops structure
authorJan Beulich <jbeulich@suse.com>
Mon, 8 Apr 2019 11:04:23 +0000 (13:04 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 8 Apr 2019 11:04:23 +0000 (13:04 +0200)
commit1b3cc8000c82edc9761c1e595928d6584e11f9f5
tree23ea09f973c90d6fab22a7b81a5117ab0c160846
parent9fa94e1058543759a7d45237f06c80cde3008d41
x86/IOMMU: introduce init-ops structure

Do away with the CPU vendor dependency, and set the init ops pointer
based on which ACPI tables have been found.

Also take the opportunity and add __read_mostly to iommu_ops.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Acked-by: Brian Woods <brian.woods@amd.com>
xen/drivers/passthrough/amd/pci_amd_iommu.c
xen/drivers/passthrough/vtd/dmar.c
xen/drivers/passthrough/vtd/extern.h
xen/drivers/passthrough/vtd/iommu.c
xen/drivers/passthrough/x86/iommu.c
xen/include/asm-x86/iommu.h