From: "Mike Sun" Subject: Re: Does paging_gva_to_gfn() convert to mfn for PV guests? Date: Tue, 13 May 2008 11:23:11 -0400 Message-ID: References: <20080513083428.GA4923@york.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20080513083428.GA4923@york.uk.xensource.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel List-Id: xen-devel@lists.xenproject.org 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 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 > Principal Software Engineer, Citrix Systems (R&D) Ltd. > [Company #02300071, SL9 0DZ, UK.] >