ia64/xen-unstable

changeset 16354:03e7f6806adb

x86, hvm: Fix boot of HVM guests with pass-thru devices. Cache
attributes should not be propagated for Xen-heap pages.
Signed-off-by: Keir Fraser <keir@xensource.com>
author Keir Fraser <keir@xensource.com>
date Thu Nov 08 10:21:47 2007 +0000 (2007-11-08)
parents 5b8730c78454
children 6d7ea0cf6e5b
files xen/arch/x86/mm/shadow/multi.c
line diff
     1.1 --- a/xen/arch/x86/mm/shadow/multi.c	Thu Nov 08 10:19:18 2007 +0000
     1.2 +++ b/xen/arch/x86/mm/shadow/multi.c	Thu Nov 08 10:21:47 2007 +0000
     1.3 @@ -745,10 +745,11 @@ static always_inline void
     1.4  
     1.5      /*
     1.6       * For HVM domains with direct access to MMIO areas, set the correct
     1.7 -     * caching attributes in the shadows to match what was asked for
     1.8 +     * caching attributes in the shadows to match what was asked for.
     1.9       */
    1.10      if ( (level == 1) && is_hvm_domain(d) &&
    1.11 -         !list_empty(&(domain_hvm_iommu(d)->pdev_list)) )
    1.12 +         !list_empty(&(domain_hvm_iommu(d)->pdev_list)) &&
    1.13 +         !is_xen_heap_mfn(mfn_x(target_mfn)) )
    1.14      {
    1.15          unsigned int type;
    1.16          if ( hvm_get_mem_pinned_cacheattr(d, gfn_x(target_gfn), &type) )