From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Vrabel Subject: Re: [PATCH 3/3] x86/xen: optimize get_phys_to_machine() Date: Wed, 7 Jan 2015 15:24:18 +0000 Message-ID: <54AD4FA2.7020106@citrix.com> References: <1420642048-12236-1-git-send-email-david.vrabel@citrix.com> <1420642048-12236-4-git-send-email-david.vrabel@citrix.com> <54AD4E2E.2070103@suse.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Y8sT8-0008Qg-Kg for xen-devel@lists.xenproject.org; Wed, 07 Jan 2015 15:24:22 +0000 In-Reply-To: <54AD4E2E.2070103@suse.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Juergen Gross , xen-devel@lists.xenproject.org Cc: Boris Ostrovsky List-Id: xen-devel@lists.xenproject.org On 07/01/15 15:18, Juergen Gross wrote: > On 01/07/2015 03:47 PM, David Vrabel wrote: >> The page table walk is only needed to distinguish between identity and >> missing, both of which have INVALID_P2M_ENTRY. > > As get_phys_to_machine is called by __pfn_to_mfn() only which already > checks for mfn == INVALID_P2M_ENTRY this optimization will have an > effect only in the early boot case with pfn >= xen_p2m_size. > > I doubt this is necessary. Doh. Now I remember suggesting this "optimization" before and getting the same answer from you. I'll drop this patch. David