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/
Home Products Support Community News


[Xen-devel] _domain in page_info structure

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] _domain in page_info structure
From: jeet <jeet_sat12@xxxxxxxxxxx>
Date: Tue, 27 Mar 2007 13:55:52 +0530 (IST)
Delivery-date: Tue, 27 Mar 2007 01:27:31 -0700
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.co.in; h=X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Message-ID; b=39k7nLcQMmTEpE6zHHcQGH9d3VSCXnffiLnlqRhcgnWliUY3wgnVCOAfiHBDaOZRI/HmK77cjKYotcZrCacM9vK12YWvTQksa9u0bLq2s4EMcKC4MtnW+Ew0Q33D52htrCyY9iJOWZqrH5pc2enTpjoE0Rnm15dkCSMMQ+cAzVQ=;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi All,

I am looking into the get_page() function implementation in Xen
where I encounter the reference to _domain

nd = page->u.inuse._domain;

what this field is used for? 

 I found comment in source ode about it

/* Meaning of the _domain field in shadow pages
 * --------------------------------------------
 * In shadow pages, this field will always have its least significant bit
 * set.  This ensures that all attempts to get_page() will fail (as all
 * valid pickled domain pointers have a zero for their least significant bit).
 * Instead, the remaining upper bits are used to record the shadow generation
 * counter when the shadow was created.

But I am not able to understand this.What is actual significance of this 

Please provide your valuable replies.


Yahoo! India Answers: Share what you know. Learn something new

Xen-devel mailing list

<Prev in Thread] Current Thread [Next in Thread>