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] basic mfn question

To: "King, Steven R" <steven.r.king@xxxxxxxxx>
Subject: Re: [Xen-devel] basic mfn question
From: Steven Hand <Steven.Hand@xxxxxxxxxxxx>
Date: Wed, 21 Dec 2005 07:42:20 +0000
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, Steven.Hand@xxxxxxxxxxxx
Delivery-date: Wed, 21 Dec 2005 07:45:14 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: Message from "King, Steven R" <steven.r.king@xxxxxxxxx> of "Tue, 20 Dec 2005 22:30:30 PST." <44BDAFB888F59F408FAE3CC35AB47041029E3E8D@orsmsx409>
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
>This should be an easy one.  :^)
>When two domains share a memory page via grant tables (or any other
>method for that matter), should the mfn of the page be the same in both
>domains?

The actual mfn, yes. 

>I think the answer is yes, in which case I have a bug such that:
>pfn_to_mfn( page_to_pfn( page )) gives a different value in each domain.

It's the guest's responsibility to update the p2m (and m2p) as appropriate.

Under what circumstances do you see this issue? What are the actual 
values you see? Are you sure you are using the correct 'page' in each case? 


cheers,

S.


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

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