From: Tim Deegan Subject: Re: Does paging_gva_to_gfn() convert to mfn for PV guests? Date: Tue, 13 May 2008 17:04:25 +0100 Message-ID: <20080513160425.GB4923@york.uk.xensource.com> References: <20080513083428.GA4923@york.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Mike Sun Cc: xen-devel List-Id: xen-devel@lists.xenproject.org At 11:23 -0400 on 13 May (1210677791), Mike Sun wrote: > 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? No. :) The code behind that function relies on data structures which are only maintained if paging assistance (shadow or HAP) is turned on. > 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? In the case of PV guests with shadow pagetables turned on (typically this is only while live migration is in progress), then yes, you should get an MFN. Cheers, Tim -- Tim Deegan Principal Software Engineer, Citrix Systems (R&D) Ltd. [Company #02300071, SL9 0DZ, UK.]