ia64/xen-unstable

changeset 18069:cec304746b36

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>
author Keir Fraser <keir.fraser@citrix.com>
date Wed Jul 16 11:15:14 2008 +0100 (2008-07-16)
parents 649c975b72f0
children 3fe6df9afd5d
files xen/drivers/passthrough/vtd/iommu.c
line diff
     1.1 --- a/xen/drivers/passthrough/vtd/iommu.c	Wed Jul 16 11:13:21 2008 +0100
     1.2 +++ b/xen/drivers/passthrough/vtd/iommu.c	Wed Jul 16 11:15:14 2008 +0100
     1.3 @@ -719,9 +719,11 @@ static int iommu_page_fault_do_one(struc
     1.4              PCI_SLOT(source_id & 0xFF), PCI_FUNC(source_id & 0xFF), addr,
     1.5              fault_reason, iommu->reg);
     1.6  
     1.7 +#ifndef __i386__ /* map_domain_page() cannot be used in this context */
     1.8      if ( fault_reason < 0x20 )
     1.9          print_vtd_entries(iommu, (source_id >> 8),
    1.10                            (source_id & 0xff), (addr >> PAGE_SHIFT));
    1.11 +#endif
    1.12  
    1.13      return 0;
    1.14  }