From: Avi Kivity Date: Mon, 31 Dec 2007 13:27:49 +0000 (+0200) Subject: KVM: MMU: Move kvm_free_some_pages() into critical section X-Git-Tag: v2.6.25-rc1~1138^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb787d10af8045dd00d4d4c9a8e90fa495f1b0c1;p=pandora-kernel.git KVM: MMU: Move kvm_free_some_pages() into critical section If some other cpu steals mmu pages between our check and an attempt to allocate, we can run out of mmu pages. Fix by moving the check into the same critical section as the allocation. Signed-off-by: Avi Kivity --- Reading git-diff-tree failed