]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita73cfd07fbfcdbb7b535f927d8ddf5bc732cfef2
tree5367d28f3b43ed9dba583106ffc2364e3ef67c23
parentb876ec4acbd658014d4035aa3d22da6e4bc62227
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