[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] vt-d: Exclude non-RAM pages (as reported by boot firmware) from dom0 mappings.



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1232789125 0
# Node ID af2ea4e48669c447edcd245c17d0ffa8a953f162
# Parent  f0b46b3a9efd7a834febff892d5c42301da7fc78
vt-d: Exclude non-RAM pages (as reported by boot firmware) from dom0 mappings.

Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
 xen/drivers/passthrough/vtd/iommu.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)

diff -r f0b46b3a9efd -r af2ea4e48669 xen/drivers/passthrough/vtd/iommu.c
--- a/xen/drivers/passthrough/vtd/iommu.c       Sat Jan 24 09:24:46 2009 +0000
+++ b/xen/drivers/passthrough/vtd/iommu.c       Sat Jan 24 09:25:25 2009 +0000
@@ -1003,7 +1003,8 @@ static int intel_iommu_domain_init(struc
         for ( i = 0; i < max_page; i++ )
         {
             if ( xen_in_range(i << PAGE_SHIFT, (i + 1) << PAGE_SHIFT) ||
-                 tboot_in_range(i << PAGE_SHIFT, (i + 1) << PAGE_SHIFT) )
+                 tboot_in_range(i << PAGE_SHIFT, (i + 1) << PAGE_SHIFT) ||
+                 !memory_is_conventional_ram(i << PAGE_SHIFT) )
                 continue;
 
             tmp = 1 << (PAGE_SHIFT - PAGE_SHIFT_4K);

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.