AMD/IOMMU: split amd_iommu_init_one()
authorJan Beulich <jbeulich@suse.com>
Wed, 31 Jul 2019 11:18:20 +0000 (13:18 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 31 Jul 2019 11:18:20 +0000 (13:18 +0200)
commit21600515305dbecd2ae70d7b2ce936a9c200475f
tree858d2af02df26e4a6cf0562f30bc676cd4c57f55
parent8f3c86381c3f3b58e77c45db7cfa5c31525f397c
AMD/IOMMU: split amd_iommu_init_one()

Mapping the MMIO space and obtaining feature information needs to happen
slightly earlier, such that for x2APIC support we can set XTEn prior to
calling amd_iommu_update_ivrs_mapping_acpi() and
amd_iommu_setup_ioapic_remapping().

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Brian Woods <brian.woods@amd.com>
xen/drivers/passthrough/amd/iommu_init.c