Mailing List Archive

[xen-unstable] vt-d: Disable VT-d table output on DMA page faults
# HG changeset patch
# User Keir Fraser <keir.fraser@citrix.com>
# Date 1216203314 -3600
# Node ID cec304746b360d0fccb2ab3944787bfb912902cb
# Parent 649c975b72f00eff06659d683b9999dffec1063a
vt-d: Disable VT-d table output on DMA page faults

Printing VT-d tables requires map_domain_page() which can not be
called from interrupt context (on x86_32).

Signed-off-by: Espen Skoglund <espen.skoglund@netronome.com>
---
xen/drivers/passthrough/vtd/iommu.c | 2 ++
1 files changed, 2 insertions(+)

diff -r 649c975b72f0 -r cec304746b36 xen/drivers/passthrough/vtd/iommu.c
--- a/xen/drivers/passthrough/vtd/iommu.c Wed Jul 16 11:13:21 2008 +0100
+++ b/xen/drivers/passthrough/vtd/iommu.c Wed Jul 16 11:15:14 2008 +0100
@@ -719,9 +719,11 @@ static int iommu_page_fault_do_one(struc
PCI_SLOT(source_id & 0xFF), PCI_FUNC(source_id & 0xFF), addr,
fault_reason, iommu->reg);

+#ifndef __i386__ /* map_domain_page() cannot be used in this context */
if ( fault_reason < 0x20 )
print_vtd_entries(iommu, (source_id >> 8),
(source_id & 0xff), (addr >> PAGE_SHIFT));
+#endif

return 0;
}

_______________________________________________
Xen-changelog mailing list
Xen-changelog@lists.xensource.com
http://lists.xensource.com/xen-changelog