debuggers.hg

changeset 21012:50f7b55b69fc

Disable memory mapping warnings when stub domain is used.

Signed-off-by: Daniel Kiper <dkiper@net-space.pl>
author Keir Fraser <keir.fraser@citrix.com>
date Mon Feb 22 18:46:09 2010 +0000 (2010-02-22)
parents 2e7dc3421a52
children 4ba4323889b9
files xen/arch/x86/mm/shadow/common.c
line diff
     1.1 --- a/xen/arch/x86/mm/shadow/common.c	Mon Feb 22 18:42:50 2010 +0000
     1.2 +++ b/xen/arch/x86/mm/shadow/common.c	Mon Feb 22 18:46:09 2010 +0000
     1.3 @@ -2607,9 +2607,11 @@ int sh_remove_all_mappings(struct vcpu *
     1.4      {
     1.5          /* Don't complain if we're in HVM and there are some extra mappings: 
     1.6           * The qemu helper process has an untyped mapping of this dom's RAM 
     1.7 -         * and the HVM restore program takes another. */
     1.8 +         * and the HVM restore program takes another. Additionally, if stub
     1.9 +         * domain is active then it also has an untyped mapping of original
    1.10 +         * domain's RAM. */
    1.11          if ( !(shadow_mode_external(v->domain)
    1.12 -               && (page->count_info & PGC_count_mask) <= 3
    1.13 +               && (page->count_info & PGC_count_mask) <= 4
    1.14                 && (page->u.inuse.type_info & PGT_count_mask) == 0) )
    1.15          {
    1.16              SHADOW_ERROR("can't find all mappings of mfn %lx: "