ia64/xen-unstable

changeset 19083:af2ea4e48669

vt-d: Exclude non-RAM pages (as reported by boot firmware) from dom0 mappings.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Sat Jan 24 09:25:25 2009 +0000 (2009-01-24)
parents f0b46b3a9efd
children 55bf9404a675
files xen/drivers/passthrough/vtd/iommu.c
line diff
     1.1 --- a/xen/drivers/passthrough/vtd/iommu.c	Sat Jan 24 09:24:46 2009 +0000
     1.2 +++ b/xen/drivers/passthrough/vtd/iommu.c	Sat Jan 24 09:25:25 2009 +0000
     1.3 @@ -1003,7 +1003,8 @@ static int intel_iommu_domain_init(struc
     1.4          for ( i = 0; i < max_page; i++ )
     1.5          {
     1.6              if ( xen_in_range(i << PAGE_SHIFT, (i + 1) << PAGE_SHIFT) ||
     1.7 -                 tboot_in_range(i << PAGE_SHIFT, (i + 1) << PAGE_SHIFT) )
     1.8 +                 tboot_in_range(i << PAGE_SHIFT, (i + 1) << PAGE_SHIFT) ||
     1.9 +                 !memory_is_conventional_ram(i << PAGE_SHIFT) )
    1.10                  continue;
    1.11  
    1.12              tmp = 1 << (PAGE_SHIFT - PAGE_SHIFT_4K);