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

[Xen-devel] struct page_info

To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] struct page_info
From: Mukesh Rathor <mukesh.rathor@xxxxxxxxxx>
Date: Thu, 23 Apr 2009 20:15:25 -0700
Delivery-date: Thu, 23 Apr 2009 20:16:05 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Organization: Oracle Corp
Reply-to: mukesh.rathor@xxxxxxxxxx
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.21 (X11/20090320)

Hi,
I'm trying to figure out all the incarnations of a page. That led me to
page_info{}. Now, looking at it, the shadow page is confusing.

        /* Page is in use: ((count_info & PGC_count_mask) != 0).  */
        ..

        /* Page is in use as a shadow: count_info == 0. */
        ..
        /* Page is on a free list: ((count_info & PGC_count_mask) == 0). */
        ..

If count_info == 0, and it implies shadow page, how's that different
from an unallocated page which also would've count_info=0 I presume?

Also, if "Page is on a free list:", I assume one of the PGC_ fields would
be set?


thanks,
Mukesh




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