]> xenbits.xensource.com Git - xen.git/commit
mm: Place unscrubbed pages at the end of pagelist
authorBoris Ostrovsky <boris.ostrovsky@oracle.com>
Wed, 16 Aug 2017 18:31:00 +0000 (20:31 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 21 Aug 2017 13:44:39 +0000 (15:44 +0200)
commit1a37f33ea613782ac424e4dec84392728d0ab925
tree7325ceef6ff607b32f68f412308354826dd23b61
parentca617570542e1d7d8de636d5396959bbf1dabab7
mm: Place unscrubbed pages at the end of pagelist

.. so that it's easy to find pages that need to be scrubbed (those pages are
now marked with _PGC_need_scrub bit).

We keep track of the first unscrubbed page in a page buddy using first_dirty
field. For now it can have two values, 0 (whole buddy needs scrubbing) or
INVALID_DIRTY_IDX (the buddy does not need to be scrubbed). Subsequent patches
will allow scrubbing to be interrupted, resulting in first_dirty taking any
value.

Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Acked-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/common/page_alloc.c
xen/include/asm-arm/mm.h
xen/include/asm-x86/mm.h