Skip to contentSkip to conversation

AMD IOMMU: Unmapped interrupt should result io page fault

PATCH New Wei Wang2 1 participant 1 message Apr 8, 2011

lore
Share & tools
lore

Wei Wang2

author
#0 lore raw

PATCH 1/1 AMD IOMMU: Unmapped interrupt should result io page fault

This could help us to debug interrupt related issues. Thanks,
Wei
--
Advanced Micro Devices GmbH
Sitz: Dornach, Gemeinde Aschheim,
Landkreis München Registergericht München, HRB Nr. 43632
WEEE-Reg-Nr: DE 12919551
Geschäftsführer:
Alberto Bozzo, Andrew Bowd

# HG changeset patch
# User Wei Wang <[email protected]>
# Node ID 2bd2f621160b93a9f8cb6e21fd1a984d7ae2f51d
# Parent ab2944070ca99790546b34fa04a80103d3e7464f
Unmapped interrupt should generate IO page faults. This helps us to debug interrupt issues.

Signed-off-by Wei Wang <[email protected]>

xen/drivers/passthrough/amd/iommu_map.c +3 -2
diff -r ab2944070ca9 -r 2bd2f621160b xen/drivers/passthrough/amd/iommu_map.c
@@ -327,8 +327,9 @@ void amd_iommu_set_intremap_table(u32 *d
     set_field_in_reg_u32(0xB, entry,
                          IOMMU_DEV_TABLE_INT_TABLE_LENGTH_MASK,
                          IOMMU_DEV_TABLE_INT_TABLE_LENGTH_SHIFT, &entry);
-    /* ignore unmapped interrupts */
-    set_field_in_reg_u32(IOMMU_CONTROL_ENABLED, entry,
+
+    /* unmapped interrupt results io page faults*/
+    set_field_in_reg_u32(IOMMU_CONTROL_DISABLED, entry,
                          IOMMU_DEV_TABLE_INT_TABLE_IGN_UNMAPPED_MASK,
                          IOMMU_DEV_TABLE_INT_TABLE_IGN_UNMAPPED_SHIFT, &entry);
     set_field_in_reg_u32(int_valid ? IOMMU_CONTROL_ENABLED :

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel