PoD memory 5/9: emergency scan
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 5 Jan 2009 10:44:39 +0000 (10:44 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 5 Jan 2009 10:44:39 +0000 (10:44 +0000)
commit9ad9a1609fbe407bde40498428ec465a6bd977a8
treec41f096fcc2c138666d30bbbcfc8e3e7de4991a9
parent41aa0b62699ecc9ac49ef3456b165c218aaeaaca
PoD memory 5/9: emergency scan

Implement "emergency scan" for zero pages, to deal with start-of-day
page scrubbers.

If the cache is running out, scan through memory looking for "zero
pages" that we can reclaim for the cache.  This is necessary for
operating systems which have a start-of-day page scrubber which runs
before the balloon driver can balloon down to the target.

Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
xen/arch/x86/mm/p2m.c
xen/common/grant_table.c
xen/include/asm-x86/p2m.h
xen/include/xen/grant_table.h