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] Does paging_gva_to_gfn() convert to mfn for PV guests?

To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] Does paging_gva_to_gfn() convert to mfn for PV guests?
From: "Mike Sun" <msun@xxxxxxxxxx>
Date: Tue, 13 May 2008 11:23:11 -0400
Delivery-date: Tue, 13 May 2008 08:23:34 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=Kd4E+1wfCn3GW47l0xXiAqIP11VlGXF9wivcfqYC8dA=; b=Nm1jv35/blhjL81LWFZEBvI61oaVED+8x4cV7ioFfnG2G9URagExWwV6mJq21Bi0+C/SQ0EqHyWzNS8dER7mVV0iyRw3l1Getbq7vFtJNBD6YF+CEj9Nla0tAxrFrRhVRYihn0G9DT7wND/AL1o2efMl40zTZxAKEaYqgNDp7e0=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=Gjw2pHd84fBT+CI9S+Slk0CI0I3Pn8pKkWwQbSDv1fPeahuIB6ijsESIvrCGZq7bs/0JNwICOqpZMBeh1sfc2FH1dJqXYHkVdVEnJnqdrOt/IUwdRMmw8nVnVIHnhlJCGTnShl2MShk95m2US8L8cGxcZIZtBpqs4OTqkSTGP60=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20080513083428.GA4923@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/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>
References: <e4e579070805121301j1f823221u6160adee2080fdc5@xxxxxxxxxxxxxx> <20080513083428.GA4923@xxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hmm... I'm not sure if I'm understanding clearly what you're saying.
If I use this function to translate virtual addresses from dom0 (a PV
guest without shadow paging). will I get an mfn or a pfn?

My expectation would be that I get an mfn since PV guests without any
sort of shadow paging have virt --> machine translations installed in
the page tables and do not actually use the p2m table for translation.
 Is this correct?

Thanks,
Mike

On Tue, May 13, 2008 at 4:34 AM, Tim Deegan <Tim.Deegan@xxxxxxxxxx> wrote:
>
> At 16:01 -0400 on 12 May (1210608109), Mike Sun wrote:
>  > Does the function "paging_gva_to_gfn()" in
>  > xen/include/asm-x86/paging.h translate from guest virtual address to
>  > mfns or to pfns in PV guests that are not using fully translated
>  > shadow page tables (e.g. dom)?
>
>  It ought to, as long as they're using *some* kind of paging assistance.
>  For non-HVM guests, that means shadow paging, e.g. log-dirty or 'test' mode.
>
>  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