From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mukesh Rathor Subject: struct page_info Date: Thu, 23 Apr 2009 20:15:25 -0700 Message-ID: <49F12ECD.3040102@oracle.com> Reply-To: mukesh.rathor@oracle.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel List-Id: xen-devel@lists.xenproject.org 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