mm: add 'is_special_page' inline function...
authorPaul Durrant <paul@xen.org>
Tue, 24 Mar 2020 16:40:50 +0000 (17:40 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 24 Mar 2020 16:40:50 +0000 (17:40 +0100)
commit0537d246f8db3ac0a1df2ce653b07e85cd887962
treeac1bf98beebc611aa66b0eee455321d8d987e08d
parent0a393d881f27ecddd7be762ba24951d6cb67751d
mm: add 'is_special_page' inline function...

... to cover xenheap and PGC_extra pages.

PGC_extra pages are intended to hold data structures that are associated
with a domain and may be mapped by that domain. They should not be treated
as 'normal' guest pages (i.e. RAM or page tables). Hence, in many cases
where code currently tests is_xen_heap_page() it should also check for
the PGC_extra bit in 'count_info'.

This patch therefore defines is_special_page() to cover both cases and
converts tests of is_xen_heap_page() (or open coded tests of PGC_xen_heap)
to is_special_page() where the page is assigned to a domain.

Signed-off-by: Paul Durrant <paul@xen.org>
Acked-by: Tamas K Lengyel <tamas@tklengyel.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Julien Grall <julien@xen.org>
xen/arch/x86/domctl.c
xen/arch/x86/mm.c
xen/arch/x86/mm/altp2m.c
xen/arch/x86/mm/mem_sharing.c
xen/arch/x86/mm/p2m-pod.c
xen/arch/x86/mm/p2m.c
xen/arch/x86/mm/shadow/common.c
xen/arch/x86/mm/shadow/multi.c
xen/arch/x86/tboot.c
xen/include/xen/mm.h