Re: [Xen-devel] [PATCH 3/3] x86/xen: optimize get_phys_to_machine()

2015-01-07 Thread David Vrabel
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 m

Re: [Xen-devel] [PATCH 3/3] x86/xen: optimize get_phys_to_machine()

2015-01-07 Thread Juergen Gross
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

[Xen-devel] [PATCH 3/3] x86/xen: optimize get_phys_to_machine()

2015-01-07 Thread David Vrabel
The page table walk is only needed to distinguish between identity and missing, both of which have INVALID_P2M_ENTRY. Signed-off-by: David Vrabel --- arch/x86/xen/p2m.c | 30 ++ 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/arch/x86/xen/p2m.c b/arc