iommu: move iommu_update_ire_from_msi() to xen/iommu.h
authorRahul Singh <rahul.singh@arm.com>
Mon, 3 May 2021 13:30:57 +0000 (15:30 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 3 May 2021 13:30:57 +0000 (15:30 +0200)
commit705f7b55be551b9d39b5ab52689a330d73f9c8eb
treeac8b2edafa94a4ac4aa12a4a780d57dc888ed223
parent7191b808b0c2cb635f77bd4be34608cb0299a33d
iommu: move iommu_update_ire_from_msi() to xen/iommu.h

Move iommu_update_ire_from_msi(..) from passthrough/pci.c to
xen/iommu.h and wrap it under CONFIG_X86 as it is referenced in x86
code only to avoid compilation error for other architecture when
HAS_PCI is enabled.

No functional change intended.

Signed-off-by: Rahul Singh <rahul.singh@arm.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/drivers/passthrough/pci.c
xen/include/xen/iommu.h