mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
IOMMU: propagate IOMMU Device-TLB flush error up to IOMMU mapping (top level ones)
Signed-off-by: Quan Xu <quan.xu@intel.com> Acked-by: Kevin Tian <kevin.tian@intel.com> Acked-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com> Reviewed-by: Jan Beulich <jbeulich@suse.com> Acked-by: Julien Grall <julien.grall@arm.com>
This commit is contained in:
1 parent
0961444c07
commit
23a2eb0436
4 files changed
+10
-9
No files matched your search
@@ -2745,8 +2745,8 @@ static void arm_smmu_iommu_domain_teardown(struct domain *d)
|
||||
xfree(xen_domain);
|
||||
}
|
||||
|
||||
static int arm_smmu_map_page(struct domain *d, unsigned long gfn,
|
||||
unsigned long mfn, unsigned int flags)
|
||||
static int __must_check arm_smmu_map_page(struct domain *d, unsigned long gfn,
|
||||
unsigned long mfn, unsigned int flags)
|
||||
{
|
||||
p2m_type_t t;
|
||||
|
||||
|
||||
@@ -1687,9 +1687,10 @@ static void iommu_domain_teardown(struct domain *d)
|
||||
spin_unlock(&hd->arch.mapping_lock);
|
||||
}
|
||||
|
||||
static int intel_iommu_map_page(
|
||||
struct domain *d, unsigned long gfn, unsigned long mfn,
|
||||
unsigned int flags)
|
||||
static int __must_check intel_iommu_map_page(struct domain *d,
|
||||
unsigned long gfn,
|
||||
unsigned long mfn,
|
||||
unsigned int flags)
|
||||
{
|
||||
struct domain_iommu *hd = dom_iommu(d);
|
||||
struct dma_pte *page = NULL, *pte = NULL, old, new = { 0 };
|
||||
|
||||
@@ -52,8 +52,8 @@ int amd_iommu_init(void);
|
||||
int amd_iommu_update_ivrs_mapping_acpi(void);
|
||||
|
||||
/* mapping functions */
|
||||
int amd_iommu_map_page(struct domain *d, unsigned long gfn, unsigned long mfn,
|
||||
unsigned int flags);
|
||||
int __must_check amd_iommu_map_page(struct domain *d, unsigned long gfn,
|
||||
unsigned long mfn, unsigned int flags);
|
||||
int __must_check amd_iommu_unmap_page(struct domain *d, unsigned long gfn);
|
||||
u64 amd_iommu_get_next_table_from_pte(u32 *entry);
|
||||
int amd_iommu_reserve_domain_unity_map(struct domain *domain,
|
||||
|
||||
@@ -166,8 +166,8 @@ struct iommu_ops {
|
||||
#endif /* HAS_PCI */
|
||||
|
||||
void (*teardown)(struct domain *d);
|
||||
int (*map_page)(struct domain *d, unsigned long gfn, unsigned long mfn,
|
||||
unsigned int flags);
|
||||
int __must_check (*map_page)(struct domain *d, unsigned long gfn,
|
||||
unsigned long mfn, unsigned int flags);
|
||||
int __must_check (*unmap_page)(struct domain *d, unsigned long gfn);
|
||||
void (*free_page_table)(struct page_info *);
|
||||
#ifdef CONFIG_X86
|
||||
|
||||