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] Re: xc_translate_foreign_address() returns mfn??

To: "Tim Deegan" <Tim.Deegan@xxxxxxxxxx>
Subject: Re: [Xen-devel] Re: xc_translate_foreign_address() returns mfn??
From: "Jun Koi" <junkoi2004@xxxxxxxxx>
Date: Sat, 20 Dec 2008 08:40:08 +0900
Cc: "List: Xen Developers" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Fri, 19 Dec 2008 15:40:42 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=zC+hvpF2v6x/Z3q1EUO8FjKIXdgFUEnGspxksN6vab0=; b=gcWXQF7SD8SAtV43/pA4nqQefdpIUsH7VEgKlPOx83VsGqs4ViZeFABoSt+YEGf8df SSmYo7igQs9CqiBFiOwL3t2lqQkaz0AEQEAbJ0WM0HsxvcMkXY+dnV93I0JWF0D29oer EjGKiwResBiNbYuSFLynwUsH8qbDSXxbKJKeQ=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=uxRxJ+97V5vjZ5WFRFyCluBJJr/No1vTYJVvREslvzz/IZyDMnb63MM6GkImW3n9xt gZSz/YWjWCm54x1DH1JbrC+v1+Y8uimC71tjZRb+L2vP3jBnyjmFelk2F/V3EChl3/wq La+tHcdqJXvsdpHY+2Hvhq01Fj9IFuloSYBQo=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20081219171312.GA21790@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: <fdaac4d50812190216p398a615ds92cdf95197d84590@xxxxxxxxxxxxxx> <fdaac4d50812190638j7ad2633av58426147b63236d0@xxxxxxxxxxxxxx> <20081219171312.GA21790@xxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Sat, Dec 20, 2008 at 2:13 AM, Tim Deegan <Tim.Deegan@xxxxxxxxxx> wrote:
> Hi,
>
> At 23:38 +0900 on 19 Dec (1229729882), Jun Koi wrote:
>> So everything indicates that xc_translate_foreign_address() actually
>> returns gfn, not mfn like in its comment. Could anybody confirms that
>> the function works well on both PV and HVM?
>
> To the best of my knowledge that function does not work at all for HVM
> (at least, I know it is broken when using 32-bit tools and 64-bit xen).
> I have a half-done patchset that cleans it up considerably, fixing HVM
> and compat issues, which I'll probably post at the end of the month.
>
> In any case, you are right: these functions (like _almost_ every other
> interface dealing with guest memory) deals in what in the shadow code are
> called GFNs.  That is, untranslated GPFNs for HVM guests, and MFNs for PV.
>
> The use of "mfn" in the source code is probably an indicator that this
> code pre-dates HVM guest support.

That is a smart guess, I think :-)

And please fix the comment to reflect this in your new code.

Many thanks,
J

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

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