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] Given a mfn, how to tell whether it is a guest page or

To: Tim Deegan <Tim.Deegan@xxxxxxxxxx>
Subject: Re: [Xen-devel] Given a mfn, how to tell whether it is a guest page or not?
From: ZelluX <zellux@xxxxxxxxx>
Date: Thu, 30 Jul 2009 22:17:48 +0800
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 30 Jul 2009 07:18:19 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=v3oaxZRg1wNSpC+F+XKc1VfF4T16Nu/qSgNxxABWVO0=; b=EevY/sPQclexiISpHayFWFy7e+Komn1OuiA/ycybuip6MeGJaABkDPF3YnLb4mKPRS SjREycpeOGb+wNDVqWx0ZpYzThWbYfuoP/IgmOltCA/jgKF/VAHYkR7MeCdfcirolFsB YhZtVtpQ6kVMUxFgTkfAoOvHR3UNjhEG8pB90=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=cLZqaVMQLLZacFVmVcbLWcCqB3wX3fcOnVvQ/AnrrYfQ+O7KuDUQcdXZYf+RqsZVbd rY30IgG4lnlj/o0TfAaUS2zvAEaiOGUT3wXUxKnjSSOIoPVub4zFaCVAXVo/YocTP+19 C4Ww4zVL3Xgaoo6pl6Mew8r/yMY9w0DbR6Ruo=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20090730140310.GL5235@xxxxxxxxxxxxxxxxxxxxx>
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>
References: <e487823f0907300024v1f5e3238t38d76a664f46c4ea@xxxxxxxxxxxxxx> <20090730140310.GL5235@xxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
I'm reading arch/x86/mm/shadow/multi.c and it seems shadow_page_info struct is used here, which doesn't contain a _domain field. Is there any relation between shadow_page_info and page_info? Are page_info just place holder for shadow_page_info struct here?

On Thu, Jul 30, 2009 at 10:03 PM, Tim Deegan <Tim.Deegan@xxxxxxxxxx> wrote:
At 08:24 +0100 on 30 Jul (1248942251), ZelluX wrote:
> In shadow mode, how can I know if a mfn is related to a guest page? Is there any mfn range to tell xen pages from guest pages?

In any mode, look at the owner field of the page_info struct.

Cheers,

Tim.

--
Tim Deegan <Tim.Deegan@xxxxxxxxxx>
Principal Software Engineer, Citrix Systems (R&D) Ltd.
[Company #02300071, SL9 0DZ, UK.]



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