x86/IOMMU: initialize iommu_ops in vendor-independent code
authorJan Beulich <jbeulich@suse.com>
Mon, 8 Apr 2019 11:08:05 +0000 (13:08 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 8 Apr 2019 11:08:05 +0000 (13:08 +0200)
commit19127340a504c030901fc16d8475fc7d8cfdf8a5
treea3f86d25a7082b0122a1a14c424d0a4242db08bd
parent6d786fdbcdd5dfa0197719d8607a1fcc039d8bda
x86/IOMMU: initialize iommu_ops in vendor-independent code

Move this into iommu_hardware_setup() and make that function non-
inline. Move its declaration into common code.

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