xen/page_alloc: Move get_pg_owner()/put_pg_owner() from x86 to common code
authorBenjamin Sanda <ben.sanda@dornerworks.com>
Tue, 23 Oct 2018 15:21:35 +0000 (16:21 +0100)
committerJulien Grall <julien.grall@arm.com>
Fri, 21 Dec 2018 10:41:45 +0000 (10:41 +0000)
commitaf80e1d9c79e3bcb392775f311d20eec54b3389b
treef7fe7875c515d0007e5fdbc28915e61a7d680f65
parent396d8d5418ea908a5ef88e7d7a9f22c70ada44c2
xen/page_alloc: Move get_pg_owner()/put_pg_owner() from x86 to common code

get_pg_owner() and put_pg_owner() will be necessary in a follow-up
commit to support xentrace on Arm. So move the helper to common code.

Take the opportunity to clean-up a bit the code moved.

Signed-off-by: Benjamin Sanda <ben.sanda@dornerworks.com>
[julien: Rework commit title / turn put_pg_owner to a static inline]
Signed-off-by: Julien Grall <julien.grall@arm.com>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/mm.c
xen/common/page_alloc.c
xen/include/xen/sched.h