WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [PATCH 1/3] x86: calculate precisely the memory needed b

stefano.stabellini@xxxxxxxxxxxxx writes ("[Xen-devel] [PATCH 1/3] x86: 
calculate precisely the memory needed by init_memory_mapping"):
> +     if (pgt_buf_end != pgt_buf_top)
> +             printk(KERN_DEBUG "initial kernel pagetable allocation wasted 
> %lx"
> +                             " pages\n", pgt_buf_top - pgt_buf_end);

If (due to a bug) pgt_buf_end > pgt_buf_top, this will printk a
message about wasting a negative number of pages, rather than
crashing.  Is there something else that will catch this case ?

Ian.

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