[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] Does paging_gva_to_gfn() convert to mfn for PV guests?


  • To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: "Mike Sun" <msun@xxxxxxxxxx>
  • Date: Tue, 13 May 2008 11:23:11 -0400
  • Delivery-date: Tue, 13 May 2008 08:23:34 -0700
  • 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=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.