xen: Hide get_phys_to_machine() to be able to tune common path
authorJuergen Gross <jgross@suse.com>
Fri, 28 Nov 2014 10:53:57 +0000 (11:53 +0100)
committerDavid Vrabel <david.vrabel@citrix.com>
Thu, 4 Dec 2014 14:09:09 +0000 (14:09 +0000)
commit0aad5689837c882d2539f50f42f686b74046c0a0
tree5367d28f3b43ed9dba583106ffc2364e3ef67c23
parent792230c3a66b3d17d6dcca712866d24f2283d4a6
xen: Hide get_phys_to_machine() to be able to tune common path

Today get_phys_to_machine() is always called when the mfn for a pfn
is to be obtained. Add a wrapper __pfn_to_mfn() as inline function
to be able to avoid calling get_phys_to_machine() when possible as
soon as the switch to a linear mapped p2m list has been done.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: David Vrabel <david.vrabel@citrix.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
arch/x86/include/asm/xen/page.h
arch/x86/xen/mmu.c
arch/x86/xen/p2m.c