ia64/xen-unstable

changeset 18773:baad1475f2cd

x86, hvm: Only warn on memory attribute conflicts for real RAM.

From: Disheng Su <disheng.su@intel.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Wed Nov 05 10:25:11 2008 +0000 (2008-11-05)
parents ef202be3cf54
children 1e437b5b418a
files xen/arch/x86/hvm/mtrr.c
line diff
     1.1 --- a/xen/arch/x86/hvm/mtrr.c	Wed Nov 05 10:23:26 2008 +0000
     1.2 +++ b/xen/arch/x86/hvm/mtrr.c	Wed Nov 05 10:25:11 2008 +0000
     1.3 @@ -392,12 +392,13 @@ uint32_t get_pat_flags(struct vcpu *v,
     1.4       */
     1.5      if ( pat_entry_value == INVALID_MEM_TYPE )
     1.6      {
     1.7 -        gdprintk(XENLOG_WARNING,
     1.8 -                 "Conflict occurs for a given guest l1e flags:%x "
     1.9 -                 "at %"PRIx64" (the effective mm type:%d), "
    1.10 -                 "because the host mtrr type is:%d\n",
    1.11 -                 gl1e_flags, (uint64_t)gpaddr, guest_eff_mm_type,
    1.12 -                 shadow_mtrr_type);
    1.13 +        if (mfn_valid(paddr_to_pfn(spaddr)))
    1.14 +            gdprintk(XENLOG_WARNING,
    1.15 +                    "Conflict occurs for a given guest l1e flags:%x "
    1.16 +                    "at %"PRIx64" (the effective mm type:%d), "
    1.17 +                    "because the host mtrr type is:%d\n",
    1.18 +                    gl1e_flags, (uint64_t)gpaddr, guest_eff_mm_type,
    1.19 +                    shadow_mtrr_type);
    1.20          pat_entry_value = PAT_TYPE_UNCACHABLE;
    1.21      }
    1.22      /* 4. Get the pte flags */