]> xenbits.xensource.com Git - xen.git/commitdiff
passthrough: vtd: iommu_set_hwdom_mapping is VTD specific
authorJulien Grall <julien.grall@linaro.org>
Wed, 14 May 2014 08:48:37 +0000 (10:48 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 14 May 2014 08:48:37 +0000 (10:48 +0200)
This function was exported in common header. Rename it and move the declaration
in drivers/passtrough/vtd/extern.h

Signed-off-by: Julien Grall <julien.grall@linaro.org>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/drivers/passthrough/vtd/extern.h
xen/drivers/passthrough/vtd/iommu.c
xen/drivers/passthrough/vtd/x86/vtd.c
xen/include/xen/iommu.h

index 14cd90ee982a9085ff4a6ac48b089a3162c1922b..8ca1f7ee785ef05f518a18943c3a83954dea9506 100644 (file)
@@ -103,4 +103,6 @@ void pci_vtd_quirk(struct pci_dev *pdev);
 int platform_supports_intremap(void);
 int platform_supports_x2apic(void);
 
+void vtd_set_hwdom_mapping(struct domain *d);
+
 #endif // _VTD_EXTERN_H_
index abaa8c9cf26530e06df559d2f0cfc5330f88f113..795fd15125093ef4ddfa5dfb13369a1d746e01e5 100644 (file)
@@ -1249,7 +1249,7 @@ static void __hwdom_init intel_iommu_hwdom_init(struct domain *d)
     if ( !iommu_passthrough && !need_iommu(d) )
     {
         /* Set up 1:1 page table for dom0 */
-        iommu_set_hwdom_mapping(d);
+        vtd_set_hwdom_mapping(d);
     }
 
     setup_hwdom_pci_devices(d, setup_hwdom_device);
index 218e223b478c32d252c82e5fbecf496d8d1b6df1..9a458eb5e39551e411bd5155fb4b326720d43d9f 100644 (file)
@@ -107,7 +107,7 @@ void hvm_dpci_isairq_eoi(struct domain *d, unsigned int isairq)
     spin_unlock(&d->event_lock);
 }
 
-void __hwdom_init iommu_set_hwdom_mapping(struct domain *d)
+void __hwdom_init vtd_set_hwdom_mapping(struct domain *d)
 {
     unsigned long i, j, tmp, top;
 
index f8da9f2dcea153dda341af5f55617bdddfe02e07..1fd8fb903782e320b7fd08e4a066bcb1ff873dd9 100644 (file)
@@ -127,7 +127,6 @@ void iommu_suspend(void);
 void iommu_resume(void);
 void iommu_crash_shutdown(void);
 
-void iommu_set_hwdom_mapping(struct domain *d);
 void iommu_share_p2m_table(struct domain *d);
 
 int iommu_do_domctl(struct xen_domctl *, struct domain *d,