debuggers.hg

changeset 20683:45fc26e2d05a

PoD: correct assertion and remove noisy messages

Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
author Keir Fraser <keir.fraser@citrix.com>
date Mon Dec 14 08:00:26 2009 +0000 (2009-12-14)
parents e73d666b4d30
children eaea340b371d
files xen/arch/x86/mm/p2m.c
line diff
     1.1 --- a/xen/arch/x86/mm/p2m.c	Mon Dec 14 07:59:40 2009 +0000
     1.2 +++ b/xen/arch/x86/mm/p2m.c	Mon Dec 14 08:00:26 2009 +0000
     1.3 @@ -338,7 +338,6 @@ static struct page_info * p2m_pod_cache_
     1.4  
     1.5          /* Break up a superpage to make single pages. NB count doesn't
     1.6           * need to be adjusted. */
     1.7 -        printk("%s: Breaking up superpage.\n", __func__);
     1.8          p = page_list_remove_head(&p2md->pod.super);
     1.9          mfn = mfn_x(page_to_mfn(p));
    1.10  
    1.11 @@ -529,7 +528,7 @@ p2m_pod_set_mem_target(struct domain *d,
    1.12      if ( pod_target > p2md->pod.entry_count )
    1.13          pod_target = p2md->pod.entry_count;
    1.14  
    1.15 -    ASSERT( pod_target > p2md->pod.count );
    1.16 +    ASSERT( pod_target >= p2md->pod.count );
    1.17  
    1.18      ret = p2m_pod_set_cache_target(d, pod_target);
    1.19  
    1.20 @@ -695,7 +694,6 @@ out_entry_check:
    1.21      /* If we've reduced our "liabilities" beyond our "assets", free some */
    1.22      if ( p2md->pod.entry_count < p2md->pod.count )
    1.23      {
    1.24 -        printk("b %d\n", p2md->pod.entry_count);
    1.25          p2m_pod_set_cache_target(d, p2md->pod.entry_count);
    1.26      }
    1.27