[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH 1 of 4] p2m: Keep statistics on order of p2m entries



Hi, 

Can you please add this:

 [diff]
 showfunc = True

to your .hgrc?  It makes reviewing much easier. 

There are two places where this patch changes the control flow of p2m
operations: 

> @@ -167,11 +169,14 @@
>  void ept_free_entry(struct p2m_domain *p2m, ept_entry_t *ept_entry, int 
> level)
>  {
>      /* End if the entry is a leaf entry. */
> -    if ( level == 0 || !is_epte_present(ept_entry) ||
> -         is_epte_superpage(ept_entry) )
> +    if ( level == 0 || !is_epte_present(ept_entry) || 
> is_epte_superpage(ept_entry) )
> +    {
> +        if ( is_epte_countable(ept_entry) )
> +            p2m->stats.entries[level]--;
>          return;
> +    }
>  
> -    if ( level > 1 )
> +    if ( level > 0 )
>      {

and similarly: 

> @@ -184,11 +184,15 @@
>  {
>      /* End if the entry is a leaf entry. */
>      if ( page_order == 0
> -         || !(l1e_get_flags(*p2m_entry) & _PAGE_PRESENT)
> +         || !(l1e_get_flags(*p2m_entry) & _PAGE_PRESENT) 
>           || (l1e_get_flags(*p2m_entry) & _PAGE_PSE) )
> +    {
> +        if ( l1e_get_flags(*p2m_entry) )
> +            p2m->stats.entries[page_order/9]--;
>          return;
> -
> -    if ( page_order > 9 )
> +    }
> +
> +    if ( page_order )

here.  Can you explain those in a bit more detail?

Cheers,

Tim.

-- 
Tim Deegan <Tim.Deegan@xxxxxxxxxx>
Principal Software Engineer, Xen Platform Team
Citrix Systems UK Ltd.  (Company #02937203, SL9 0BG)

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.