x86/xen: export xen_alloc_p2m_entry()
authorDavid Vrabel <david.vrabel@citrix.com>
Wed, 22 Jul 2015 13:48:09 +0000 (14:48 +0100)
committerDavid Vrabel <david.vrabel@citrix.com>
Fri, 23 Oct 2015 13:20:28 +0000 (14:20 +0100)
commit8edfcf882eb91ec9028c7334f90f6ef3db5b0fcf
tree75ed19641906ab1774f4c4a180caaf6f703c1db5
parent1cf6a6c82918c9aad4bb73a7e7379a649e4d8e50
x86/xen: export xen_alloc_p2m_entry()

Rename alloc_p2m() to xen_alloc_p2m_entry() and export it.

This is useful for ensuring that a p2m entry is allocated (i.e., not a
shared missing or identity entry) so that subsequent set_phys_to_machine()
calls will require no further allocations.

Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
---
v3:
- Make xen_alloc_p2m_entry() a nop on auto-xlate guests.
arch/x86/include/asm/xen/page.h
arch/x86/xen/p2m.c