mm: split out mfn_t / gfn_t / pfn_t definitions and helpers
authorJan Beulich <jbeulich@suse.com>
Fri, 15 Jan 2021 15:03:56 +0000 (16:03 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 15 Jan 2021 15:03:56 +0000 (16:03 +0100)
commitced9795c6cb4165b6d231a732e5351933dbd8b38
tree757141285cff66015ae9e56c6d86688fd7d08764
parentaa4b9d1ee6538b5cbe218d4d3fcdf9548130a063
mm: split out mfn_t / gfn_t / pfn_t definitions and helpers

xen/mm.h has heavy dependencies, while in a number of cases only these
type definitions are needed. This separation then also allows pulling in
these definitions when including xen/mm.h would cause cyclic
dependencies.

Replace xen/mm.h inclusion where possible in include/xen/. (In
xen/iommu.h also take the opportunity and correct the few remaining
sorting issues.)

While the change could be dropped, remove an unnecessary asm/io.h
inclusion from xen/arch/x86/acpi/power.c. This was the initial attempt
to address build issues with it, until it became clear that the header
itself needs adjustment.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Julien Grall <jgrall@amazon.com>
xen/arch/x86/acpi/power.c
xen/drivers/char/meson-uart.c
xen/drivers/char/mvebu-uart.c
xen/include/asm-x86/io.h
xen/include/xen/grant_table.h
xen/include/xen/iommu.h
xen/include/xen/mm-frame.h [new file with mode: 0644]
xen/include/xen/mm.h
xen/include/xen/p2m-common.h
xen/include/xen/vmap.h