]> www.infradead.org Git - users/jedix/linux-maple.git/commit
x86/xen: export xen_alloc_p2m_entry()
authorDavid Vrabel <david.vrabel@citrix.com>
Wed, 22 Jul 2015 13:48:09 +0000 (14:48 +0100)
committerJoao Martins <joao.m.martins@oracle.com>
Sun, 27 Mar 2016 01:01:02 +0000 (02:01 +0100)
commit509d7ef38b495607f8283287efafd48f94d3789f
tree7aad3b7dfbeaea053ac22a8df226077b15a3521d
parent95bfc629e5cdda1590bf3e6fd2725dc8d4d5e956
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.

(cherry picked from commit 8edfcf882eb91ec9028c7334f90f6ef3db5b0fcf)
Signed-off-by: Joao Martins <joao.m.martins@oracle.com>
arch/x86/include/asm/xen/page.h
arch/x86/xen/p2m.c