From: Xiao Guangrong Date: Fri, 31 May 2013 00:36:29 +0000 (+0800) Subject: KVM: MMU: reclaim the zapped-obsolete page first X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~22^2~41 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=365c886860c4ba670d245e762b23987c912c129a;p=pandora-kernel.git KVM: MMU: reclaim the zapped-obsolete page first As Marcelo pointed out that | "(retention of large number of pages while zapping) | can be fatal, it can lead to OOM and host crash" We introduce a list, kvm->arch.zapped_obsolete_pages, to link all the pages which are deleted from the mmu cache but not actually freed. When page reclaiming is needed, we always zap this kind of pages first. Signed-off-by: Xiao Guangrong Reviewed-by: Marcelo Tosatti Signed-off-by: Gleb Natapov --- Reading git-diff-tree failed