p2m: move p2m-common.h inclusion point
authorJan Beulich <jbeulich@suse.com>
Wed, 7 Nov 2018 08:35:14 +0000 (09:35 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 7 Nov 2018 08:35:14 +0000 (09:35 +0100)
commit1de3459e0961ff3233392cf21a69cafe9006de59
treec1b4e96d4a1e904da369da6cc6c231d6f253f0f6
parent0b24ef785379fff7cfb6e240e985f230155b2b12
p2m: move p2m-common.h inclusion point

The header is (hence its name) supposed to be a helper for the per-arch
p2m.h files. It was never supposed to be included directly, and for the
purpose of putting common function declarations into the common header
it is more helpful if things like p2m_t are already available at the
inclusion point.

This also undoes parts of 02ede7dc03 ("memory: add
check_get_page_from_gfn() as a wrapper..."), which had been there just
because of the unhelpful original way of including p2m-common.h.

Take the opportunity and also ditch a duplicate public/memory.h from the
ARM header.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Paul Durrant <paul.durrant@citrix.com>
Acked-by: Julien Grall <julien.grall@arm.com>
Acked-by: George Dunlap <george.dunlap@citrix.com>
xen/drivers/vpci/header.c
xen/include/asm-arm/p2m.h
xen/include/asm-x86/p2m.h
xen/include/xen/p2m-common.h