]> xenbits.xensource.com Git - xen.git/commit
include: don't use asm/page.h from common headers
authorJan Beulich <jbeulich@suse.com>
Fri, 15 Jan 2021 15:02:13 +0000 (16:02 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 15 Jan 2021 15:02:13 +0000 (16:02 +0100)
commitaa4b9d1ee6538b5cbe218d4d3fcdf9548130a063
tree98a4cf0fe613c38a4628aa9995cb34a20c3080df
parent8868a0e3f67436a5fbee750624e24a6533357f52
include: don't use asm/page.h from common headers

Doing so limits what can be done in (in particular included by) this per-
arch header. Abstract out page shift/size related #define-s, which is all
the respective headers care about. Extend the replacement / removal to
some x86 headers as well; some others now need to include page.h (and
they really should have before).

Arm's VADDR_BITS gets dropped altogether: Its current value is clearly
wrong for 64-bit, but the constant also isn't used anywhere right now.

While Arm used vaddr_t in PAGE_OFFSET(), this use is compatible with
that of unsigned long in the new common implementation.

Also drop the dead PAGE_FLAG_MASK at this occasion.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Julien Grall <jgrall@amazon.com>
21 files changed:
xen/arch/arm/arm64/lib/clear_page.S
xen/include/asm-arm/config.h
xen/include/asm-arm/current.h
xen/include/asm-arm/page-bits.h [new file with mode: 0644]
xen/include/asm-arm/page.h
xen/include/asm-x86/current.h
xen/include/asm-x86/desc.h
xen/include/asm-x86/fixmap.h
xen/include/asm-x86/guest/hyperv-hcall.h
xen/include/asm-x86/guest/hyperv-tlfs.h
xen/include/asm-x86/io.h
xen/include/asm-x86/mm.h
xen/include/asm-x86/page-bits.h [new file with mode: 0644]
xen/include/asm-x86/page.h
xen/include/asm-x86/uaccess.h
xen/include/asm-x86/x86_64/page.h
xen/include/xen/gdbstub.h
xen/include/xen/grant_table.h
xen/include/xen/page-size.h [new file with mode: 0644]
xen/include/xen/pfn.h
xen/include/xen/vmap.h